Changeset 7543dec for src/ControlStruct
- Timestamp:
- Nov 9, 2017, 1:01:14 PM (8 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 96fc67b
- Parents:
- 049ead9
- git-author:
- Rob Schluntz <rschlunt@…> (11/08/17 16:40:12)
- git-committer:
- Rob Schluntz <rschlunt@…> (11/09/17 13:01:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptTranslate.cc
r049ead9 r7543dec 315 315 { 316 316 VarExprReplacer::DeclMap mapping; 317 mapping[ handler_decl ] = local_except;317 mapping[ handler_decl ] = new VariableExpr( local_except ); 318 318 VarExprReplacer mapper( mapping ); 319 handler-> get_body()->accept( mapper );319 handler->body->acceptMutator( mapper ); 320 320 } 321 321 322 block->push_back( handler-> get_body());323 handler-> set_body( nullptr );322 block->push_back( handler->body ); 323 handler->body = nullptr; 324 324 325 325 std::list<Statement *> caseBody
Note:
See TracChangeset
for help on using the changeset viewer.