aboutsummaryrefslogtreecommitdiffstats
path: root/ast.h
diff options
context:
space:
mode:
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;
}