Ignore:
Timestamp:
May 25, 2018, 2:51:06 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
cdc4d43
Parents:
3ef35bd (diff), 58e822a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into with_gc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ApplicationExpr.cc

    r3ef35bd reba74ba  
    4242}
    4343
     44ParamEntry::ParamEntry( ParamEntry && other ) :
     45                decl( other.decl ), actualType( other.actualType ), formalType( other.formalType ), expr( other.expr ), inferParams( std::move( other.inferParams ) ) {
     46        other.actualType = nullptr;
     47        other.formalType = nullptr;
     48        other.expr = nullptr;
     49}
     50
     51ParamEntry & ParamEntry::operator=( ParamEntry && other ) {
     52        if ( &other == this ) return *this;
     53        decl = other.decl;
     54        actualType = other.actualType;
     55        formalType = other.formalType;
     56        expr = other.expr;
     57        other.actualType = nullptr;
     58        other.formalType = nullptr;
     59        other.expr = nullptr;
     60        inferParams = std::move( other.inferParams );
     61        return *this;
     62}
     63
    4464ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list<Expression *> & args ) : function( funcExpr ), args( args ) {
    4565        PointerType *pointer = strict_dynamic_cast< PointerType* >( funcExpr->get_result() );
Note: See TracChangeset for help on using the changeset viewer.