Changes in src/AST/Expr.cpp [c36298d:417117e]
- File:
-
- 1 edited
-
src/AST/Expr.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
rc36298d r417117e 20 20 #include <vector> 21 21 22 #include "Eval.hpp" // for call 22 23 #include "GenericSubstitution.hpp" 23 24 #include "Stmt.hpp" … … 51 52 assert( arg ); 52 53 53 UntypedExpr * ret = new UntypedExpr{ 54 loc, new NameExpr{loc, "*?"}, std::vector<ptr<Expr>>{ ptr<Expr>{ arg } } 55 }; 54 UntypedExpr * ret = call( loc, "*?", arg ); 56 55 if ( const Type * ty = arg->result ) { 57 56 const Type * base = InitTweak::getPointerBase( ty ); … … 74 73 assert( lhs && rhs ); 75 74 76 UntypedExpr * ret = new UntypedExpr{ 77 loc, new NameExpr{loc, "?=?"}, std::vector<ptr<Expr>>{ ptr<Expr>{ lhs }, ptr<Expr>{ rhs } } 78 }; 75 UntypedExpr * ret = call( loc, "?=?", lhs, rhs ); 79 76 if ( lhs->result && rhs->result ) { 80 77 // if both expressions are typed, assumes that this assignment is a C bitwise assignment,
Note:
See TracChangeset
for help on using the changeset viewer.