Changeset 21ae786
- Timestamp:
- Apr 27, 2016, 5:17:36 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1ad1c99e
- Parents:
- 4ffdd63
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r4ffdd63 r21ae786 10 10 // Created On : Sun May 17 12:17:01 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : T hu Apr 14 11:18:12201612 // Last Modified On : Tue Apr 26 16:08:21 2016 13 13 // Update Count : 203 14 14 // … … 496 496 } 497 497 498 if ( ExprStmt * exprStmt = dynamic_cast< ExprStmt * > ( ctorInit->get_ctor() ) ) {499 ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * >( exprStmt->get_expr() );500 assert( appExpr );501 VariableExpr * function = dynamic_cast< VariableExpr * > ( appExpr->get_function() );502 assert( function );503 if ( LinkageSpec::isOverridable( function->get_var()->get_linkage() ) ) {504 // if the constructor that was found is intrinsic or autogenerated, reset to C-style505 // initializer so that code generation is easy to handle506 fallbackInit( ctorInit );507 return;508 }509 }510 498 // found a constructor - can get rid of C-style initializer 511 499 delete ctorInit->get_init();
Note: See TracChangeset
for help on using the changeset viewer.