Changeset 890f67a


Ignore:
Timestamp:
Oct 3, 2022, 3:26:53 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
31c967b
Parents:
4b8b2a4
Message:

Was passing CodeLocation? to an old node. Not sure how that happened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r4b8b2a4 r890f67a  
    750750                        if ( StructInstType * inst = dynamic_cast< StructInstType * >( t ) ) {
    751751                                // 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({});
    753753                        } else if ( UnionInstType * inst = dynamic_cast< UnionInstType * >( t ) ) {
    754754                                // 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({});
    756756                        }
    757757
Note: See TracChangeset for help on using the changeset viewer.