Changeset 4e13e2a for src/AST/Expr.hpp


Ignore:
Timestamp:
Sep 17, 2019, 12:56:32 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8e1467d
Parents:
a6f26ca
Message:

Added setting of result in Comma expression.
Added asserts in candidate finder to catch null pointers earlier.
ForAll? substituter now properly uses ShallowCopy?.
Added missing makefile.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    ra6f26ca r4e13e2a  
    541541
    542542        CommaExpr( const CodeLocation & loc, const Expr * a1, const Expr * a2 )
    543         : Expr( loc ), arg1( a1 ), arg2( a2 ) {}
     543        : Expr( loc ), arg1( a1 ), arg2( a2 ) {
     544                this->result = a2->result;
     545        }
    544546
    545547        const Expr * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.