Changeset 890f67a
- Timestamp:
- Oct 3, 2022, 3:26:53 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 31c967b
- Parents:
- 4b8b2a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r4b8b2a4 r890f67a 750 750 if ( StructInstType * inst = dynamic_cast< StructInstType * >( t ) ) { 751 751 // initizer for empty struct must be empty 752 if ( inst->baseStruct->members.empty() ) return new ListInit( CodeLocation());752 if ( inst->baseStruct->members.empty() ) return new ListInit({}); 753 753 } else if ( UnionInstType * inst = dynamic_cast< UnionInstType * >( t ) ) { 754 754 // initizer for empty union must be empty 755 if ( inst->baseUnion->members.empty() ) return new ListInit( CodeLocation());755 if ( inst->baseUnion->members.empty() ) return new ListInit({}); 756 756 } 757 757
Note: See TracChangeset
for help on using the changeset viewer.