Changeset c341b57 for src/Validate
- Timestamp:
- Feb 13, 2025, 5:52:15 PM (7 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/EnumAndPointerDecay.cpp
r502ff9e rc341b57 48 48 } else if ( auto value = member.as<ast::InlineMemberDecl>() ) { 49 49 auto targetEnum = symtab.lookupEnum( value->name ); 50 // assert( targetEnum );51 50 if (!targetEnum) { 52 51 SemanticError(value, "Only another enum is allowed for enum inline syntax "); 53 52 } 54 53 const ast::EnumInstType * instType = new ast::EnumInstType(targetEnum); 55 mut->inlinedDecl. push_back( std::move(instType));54 mut->inlinedDecl.emplace_back( instType ); 56 55 for ( auto enumMember : targetEnum->members ) { 57 56 auto enumObject = enumMember.strict_as<ast::ObjectDecl>();
Note:
See TracChangeset
for help on using the changeset viewer.