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