Changeset 59627b3 for src


Ignore:
Timestamp:
Sep 18, 2024, 4:06:35 PM (6 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f660b10
Parents:
c329bca (diff), 152944e (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/Parser/TypeData.cpp

    rc329bca r59627b3  
    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.