Ignore:
Timestamp:
Feb 13, 2025, 5:52:15 PM (7 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
ef9f11c
Parents:
502ff9e (diff), 53f4b55 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/EnumAndPointerDecay.cpp

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