Changeset 135143b


Ignore:
Timestamp:
Oct 19, 2022, 4:34:28 PM (18 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
058ece2, df6cc9d
Parents:
d1abc63c
Message:

Hacked in code location in a case where errors didn't have it.
This is in old AST so it will go away soon (TM).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AddressExpr.cc

    rd1abc63c r135143b  
    5050                                set_result( addrType( refType->base ) );
    5151                        } else {
     52                                if(!arg->result->location.isSet()) arg->result->location = arg->location;
    5253                                SemanticError( arg->result, "Attempt to take address of non-lvalue expression: " );
    5354                        } // if
Note: See TracChangeset for help on using the changeset viewer.