From 96c59ff30a2dbe2cc441024c81caaf79823441ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Nov 2019 09:23:39 +0200 Subject: Fix bug in cc::parser location storage --- libbuild2/cc/parser.cxx | 2 +- libbuild2/cc/parser.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc') diff --git a/libbuild2/cc/parser.cxx b/libbuild2/cc/parser.cxx index abfe5bd..690f41c 100644 --- a/libbuild2/cc/parser.cxx +++ b/libbuild2/cc/parser.cxx @@ -187,7 +187,7 @@ namespace build2 // if (!ex && t.type == type::semi) { - module_marker_ = move (l); + module_marker_ = location_value (move (l)); return; } diff --git a/libbuild2/cc/parser.hxx b/libbuild2/cc/parser.hxx index cc2eaa3..f1188ff 100644 --- a/libbuild2/cc/parser.hxx +++ b/libbuild2/cc/parser.hxx @@ -47,7 +47,7 @@ namespace build2 lexer* l_; unit* u_; - optional module_marker_; + optional module_marker_; }; } } -- cgit v1.1