Changeset 14a33790 for src/InitTweak
- Timestamp:
- Mar 20, 2017, 3:51:39 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:
- 233e4d9
- Parents:
- 946bcca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r946bcca r14a33790 534 534 } else { 535 535 // expr isn't a call expr, so create a new temporary variable to use to hold the value of the unique expression 536 unqExpr->set_object( new ObjectDecl( toString("_unq _expr_", unqExpr->get_id()), Type::StorageClasses(), LinkageSpec::C, nullptr, unqExpr->get_result()->clone(), nullptr ) );536 unqExpr->set_object( new ObjectDecl( toString("_unq", unqExpr->get_id()), Type::StorageClasses(), LinkageSpec::C, nullptr, unqExpr->get_result()->clone(), nullptr ) ); 537 537 unqExpr->set_var( new VariableExpr( unqExpr->get_object() ) ); 538 538 }
Note: See TracChangeset
for help on using the changeset viewer.