Bug 373938

Summary: const IRExpr arguments for matchIRExpr()
Product: [Developer tools] valgrind Reporter: Ivo Raisr <ivosh>
Component: vexAssignee: Ivo Raisr <ivosh>
Status: RESOLVED FIXED    
Severity: normal CC: ivosh
Priority: NOR    
Version: 3.13 SVN   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Attachments: proposed patch

Description Ivo Raisr 2016-12-20 06:33:01 UTC
Created attachment 102889 [details]
proposed patch

It should be possible to pass 'const IRExpr *' as an argument to matchIRExpr() in VEX. Neither 'pattern' or 'expr' are modified in any way.


See the attached patch which builds cleanly on Linux and Solaris.
Comment 1 Ivo Raisr 2016-12-21 08:55:45 UTC
So the gist of my changes is really just:
- Bool matchIRExpr ( MatchInfo* mi, IRExpr* p, IRExpr* e );
+ Bool matchIRExpr ( MatchInfo* mi, const IRExpr* p, const IRExpr* e );
Comment 2 Ivo Raisr 2016-12-23 12:40:56 UTC
Fixed in Valgrind r16191 (NEWS) and VEX r3288.