- File:
-
- 1 edited
-
src/ControlStruct/ExceptTranslateNew.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptTranslateNew.cpp
rc36814a r400b8be 32 32 } 33 33 34 class TranslateThrowsCore final: public ast::WithGuards {34 class TranslateThrowsCore : public ast::WithGuards { 35 35 const ast::ObjectDecl * terminateHandlerExcept; 36 36 enum Context { NoHandler, TerHandler, ResHandler } currentContext; … … 136 136 137 137 138 class TryMutatorCore final{138 class TryMutatorCore { 139 139 // The built in types used in translation. 140 140 const ast::StructDecl * except_decl; … … 190 190 location, 191 191 "__handler_index", 192 new ast::BasicType( ast::BasicType::SignedInt ) 192 new ast::BasicType(ast::BasicType::SignedInt), 193 nullptr, //init 194 ast::Storage::Classes{}, 195 ast::Linkage::Cforall 193 196 ); 194 197 } … … 200 203 location, 201 204 "__exception_inst", 202 new ast::PointerType( new ast::StructInstType( except_decl ) ) 205 new ast::PointerType( 206 new ast::StructInstType( except_decl ) 207 ), 208 nullptr, //init 209 ast::Storage::Classes{}, 210 ast::Linkage::Cforall 203 211 ); 204 212 }
Note:
See TracChangeset
for help on using the changeset viewer.