summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-03-31 17:12:34 -0700
committerIan Romanick <ian.d.romanick@intel.com>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 <kenneth@whitecape.org>
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 8035259008..f7cdf96d09 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;
}