Changeset d29fa5f for src/InitTweak
- Timestamp:
- Oct 2, 2017, 4:58:51 PM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rbf4b4cf rd29fa5f 390 390 assert( env ); 391 391 CP_CTOR_PRINT( std::cerr << "Type Substitution: " << *env << std::endl; ) 392 assert( arg-> has_result());392 assert( arg->result ); 393 393 Type * result = arg->get_result(); 394 394 if ( skipCopyConstruct( result ) ) return; // skip certain non-copyable types … … 1125 1125 static UniqueName tempNamer( "_tmp_ctor_expr" ); 1126 1126 // 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 ); 1128 1128 1129 1129 // 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.