aboutsummaryrefslogtreecommitdiffstats
path: root/ast.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-03-31 17:12:34 -0700
committerIan Romanick <[email protected]>2010-03-31 18:26:27 -0700
commitebfdef7a83966341c27f44c83366419d4a2f7a60 (patch)
tree1545f71b87b896545f3cdef2c63a224f5fbfa42c /ast.h
parent92318a947958892497722772b03c643ebc943294 (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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ast.h b/ast.h
index 80352590080..f7cdf96d099 100644
--- a/ast.h
+++ b/ast.h
@@ -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;
}