Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslateNew.cpp

    rc36814a r400b8be  
    3232        }
    3333
    34 class TranslateThrowsCore final : public ast::WithGuards {
     34class TranslateThrowsCore : public ast::WithGuards {
    3535        const ast::ObjectDecl * terminateHandlerExcept;
    3636        enum Context { NoHandler, TerHandler, ResHandler } currentContext;
     
    136136
    137137
    138 class TryMutatorCore final {
     138class TryMutatorCore {
    139139        // The built in types used in translation.
    140140        const ast::StructDecl * except_decl;
     
    190190                location,
    191191                "__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
    193196                );
    194197}
     
    200203                location,
    201204                "__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
    203211                );
    204212}
Note: See TracChangeset for help on using the changeset viewer.