Changeset d29fa5f for src/InitTweak


Ignore:
Timestamp:
Oct 2, 2017, 4:58:51 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
effdde0
Parents:
bf4b4cf
Message:

Remove has_result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    rbf4b4cf rd29fa5f  
    390390                        assert( env );
    391391                        CP_CTOR_PRINT( std::cerr << "Type Substitution: " << *env << std::endl; )
    392                         assert( arg->has_result() );
     392                        assert( arg->result );
    393393                        Type * result = arg->get_result();
    394394                        if ( skipCopyConstruct( result ) ) return; // skip certain non-copyable types
     
    11251125                        static UniqueName tempNamer( "_tmp_ctor_expr" );
    11261126                        // xxx - is the size check necessary?
    1127                         assert( ctorExpr->has_result() && ctorExpr->get_result()->size() == 1 );
     1127                        assert( ctorExpr->result && ctorExpr->get_result()->size() == 1 );
    11281128
    11291129                        // xxx - ideally we would reuse the temporary generated from the copy constructor passes from within firstArg if it exists and not generate a temporary if it's unnecessary.
Note: See TracChangeset for help on using the changeset viewer.