Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    rc36298d r417117e  
    2020#include <vector>
    2121
     22#include "Eval.hpp"                // for call
    2223#include "GenericSubstitution.hpp"
    2324#include "Stmt.hpp"
     
    5152        assert( arg );
    5253
    53         UntypedExpr * ret = new UntypedExpr{
    54                 loc, new NameExpr{loc, "*?"}, std::vector<ptr<Expr>>{ ptr<Expr>{ arg } }
    55         };
     54        UntypedExpr * ret = call( loc, "*?", arg );
    5655        if ( const Type * ty = arg->result ) {
    5756                const Type * base = InitTweak::getPointerBase( ty );
     
    7473        assert( lhs && rhs );
    7574
    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 );
    7976        if ( lhs->result && rhs->result ) {
    8077                // if both expressions are typed, assumes that this assignment is a C bitwise assignment,
Note: See TracChangeset for help on using the changeset viewer.