Changeset 417117e for src/AST/Expr.cpp
- Timestamp:
- Jun 28, 2019, 3:50:21 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 03bf5c8
- Parents:
- 55b6476
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r55b6476 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.