Ignore:
Timestamp:
Sep 6, 2018, 10:51:37 AM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9b086ca
Parents:
ec42ff2e
Message:

Add Destructor handlers for argument and return temporaries, merge and simplify ResolveCopyCtors/FixCopyCtors? passes, simplify ImplicitCopyCtorExpr?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.h

    rec42ff2e r2f86ddf  
    591591class ImplicitCopyCtorExpr : public Expression {
    592592public:
    593         ApplicationExpr * callExpr;
    594         std::list< ObjectDecl * > tempDecls;
    595         std::list< ObjectDecl * > returnDecls;
    596         std::list< Expression * > dtors;
     593        ApplicationExpr * callExpr = nullptr;
    597594
    598595        ImplicitCopyCtorExpr( ApplicationExpr * callExpr );
    599596        ImplicitCopyCtorExpr( const ImplicitCopyCtorExpr & other );
    600597        virtual ~ImplicitCopyCtorExpr();
    601 
    602         ApplicationExpr * get_callExpr() const { return callExpr; }
    603         void set_callExpr( ApplicationExpr * newValue ) { callExpr = newValue; }
    604 
    605         std::list< ObjectDecl * > & get_tempDecls() { return tempDecls; }
    606         std::list< ObjectDecl * > & get_returnDecls() { return returnDecls; }
    607         std::list< Expression * > & get_dtors() { return dtors; }
    608598
    609599        virtual ImplicitCopyCtorExpr * clone() const { return new ImplicitCopyCtorExpr( * this ); }
Note: See TracChangeset for help on using the changeset viewer.