diff options
author | Kenneth Graunke <[email protected]> | 2010-03-31 17:12:34 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-31 18:26:27 -0700 |
commit | ebfdef7a83966341c27f44c83366419d4a2f7a60 (patch) | |
tree | 1545f71b87b896545f3cdef2c63a224f5fbfa42c /ast.h | |
parent | 92318a947958892497722772b03c643ebc943294 (diff) |
Set source locations on AST nodes so error messages print locations.
I haven't verified that these are all correct, but it's still a lot
better than not having anything.
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -68,11 +68,11 @@ public: * * \sa ast_node::get_location */ - void set_location(const struct YYLTYPE *locp) + void set_location(const struct YYLTYPE &locp) { - this->location.source = locp->source; - this->location.line = locp->first_line; - this->location.column = locp->first_column; + this->location.source = locp.source; + this->location.line = locp.first_line; + this->location.column = locp.first_column; } |