aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-15 09:23:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-15 09:23:39 +0200
commit96c59ff30a2dbe2cc441024c81caaf79823441ac (patch)
tree3e6108d8bb34627ff1947e6455bded3ca4af2335 /libbuild2/cc
parent11f990b55294a9eb8d5d4f29fa9a277702ca72b9 (diff)
Fix bug in cc::parser location storage
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/parser.cxx2
-rw-r--r--libbuild2/cc/parser.hxx2
2 files changed, 2 insertions, 2 deletions
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<location> module_marker_;
+ optional<location_value> module_marker_;
};
}
}