Changeset 7119daa
- Timestamp:
 - May 22, 2020, 2:49:54 PM (5 years ago)
 - Branches:
 - ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
 - Children:
 - f4530d7
 - Parents:
 - 99fea48
 - Location:
 - src/ControlStruct
 - Files:
 - 
      
- 2 edited
 
- 
          
  ExceptTranslate.cc (modified) (3 diffs)
 - 
          
  ExceptTranslate.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/ControlStruct/ExceptTranslate.cc
r99fea48 r7119daa 107 107 nameOf( terminate_handler_except ), 108 108 new ConstantExpr( Constant::null( 109 //new PointerType( 110 // noQualifiers, 111 terminate_handler_except->get_type()->clone() 112 // ) 109 terminate_handler_except->get_type()->clone() 113 110 ) ) 114 111 ) ) ); … … 232 229 233 230 void premutate( StructDecl *structDecl ); 234 Statement * postmutate( ThrowStmt *throwStmt );235 231 Statement * postmutate( TryStmt *tryStmt ); 236 232 }; … … 621 617 } 622 618 623 Statement * TryMutatorCore::postmutate( ThrowStmt * ) {624 // All throws should be removed by this point.625 assert( false );626 }627 628 619 Statement * TryMutatorCore::postmutate( TryStmt *tryStmt ) { 629 620 assert( except_decl );  - 
      
src/ControlStruct/ExceptTranslate.h
r99fea48 r7119daa 29 29 /* Replaces all try blocks (and their many clauses) with function definitions and calls. 30 30 * This uses the exception built-ins to produce typed output and should take place after 31 * the resolver. 31 * the resolver. It also produces virtual casts and should happen before they are expanded. 32 32 */ 33 33 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.