Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/EnumAndPointerDecay.cpp

    ra8404d9 r85855b0  
    4848                } else if ( auto value = member.as<ast::InlineMemberDecl>() ) {
    4949                        auto targetEnum = symtab.lookupEnum( value->name );
     50                        // assert( targetEnum );
    5051                        if (!targetEnum) {
    5152                                SemanticError(value, "Only another enum is allowed for enum inline syntax ");
    5253                        }
    5354                        const ast::EnumInstType * instType = new ast::EnumInstType(targetEnum);
    54                         mut->inlinedDecl.emplace_back( instType );
     55                        mut->inlinedDecl.push_back( std::move(instType) );
    5556                        for ( auto enumMember : targetEnum->members ) {
    5657                                auto enumObject = enumMember.strict_as<ast::ObjectDecl>();
Note: See TracChangeset for help on using the changeset viewer.