Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

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