Ignore:
Timestamp:
Sep 17, 2024, 10:02:38 AM (2 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
59627b3
Parents:
e37d45e1
Message:

PULL BEFORE YOU PUSH! This fix has already applied, but they were overwritten in a later change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cpp

    re37d45e1 r152944e  
    14861486                        ast::Expr * initValue;
    14871487                        if ( ret->isCfa && ret->base ) {
    1488                                 initValue = new ast::CastExpr( cur->enumeratorValue->location, maybeMoveBuild( cur->consume_enumeratorValue() ),
    1489                                                                                           ret->base );
     1488                                CodeLocation location = cur->enumeratorValue->location;
     1489                                initValue = new ast::CastExpr( location, maybeMoveBuild( cur->consume_enumeratorValue() ), ret->base );
    14901490                        } else {
    14911491                                initValue = maybeMoveBuild( cur->consume_enumeratorValue() );
Note: See TracChangeset for help on using the changeset viewer.