Changeset 5546eee4 for src/AST/Expr.cpp


Ignore:
Timestamp:
Dec 16, 2023, 1:01:44 AM (22 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
b7898ac
Parents:
0fa0201d (diff), 69ab896 (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/AST/Expr.cpp

    r0fa0201d r5546eee4  
    99// Author           : Aaron B. Moss
    1010// Created On       : Wed May 15 17:00:00 2019
    11 // Last Modified By : Andrew Beach
     11// Last Modified By : Peter A. Buhr
    1212// Created On       : Wed May 18 13:56:00 2022
    13 // Update Count     : 8
     13// Update Count     : 12
    1414//
    1515
     
    168168                        return addrType( refType->base );
    169169                } else {
    170                         SemanticError( loc, arg->result.get(),
    171                                 "Attempt to take address of non-lvalue expression: " );
     170                        SemanticError( loc, "Attempt to take address of non-lvalue expression %s",
     171                                                   toString( arg->result.get() ).c_str() );
    172172                }
    173173        }
     
    240240                return 1;
    241241        }
    242         SemanticError( this, "Constant expression of non-integral type " );
     242        SemanticError( this->location, "Constant expression of non-integral type %s",
     243                                   toString( this ).c_str() );
    243244}
    244245
Note: See TracChangeset for help on using the changeset viewer.