aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-04 15:35:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-05 15:10:01 +0200
commitd262f63ce5a7c3810abde1f66ee3bb99d56acdd0 (patch)
tree7a7114ceb95d17ebadc56f983309fb6ac5864a39 /build2/file.cxx
parent759e714238438cccf74f035e1ba11c925b27cd55 (diff)
Add support for variable aliases
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/file.cxx b/build2/file.cxx
index e18ae5e..5ffa59a 100644
--- a/build2/file.cxx
+++ b/build2/file.cxx
@@ -376,7 +376,7 @@ namespace build2
temp_scope tmp (s.global ());
p.parse_variable (lex, tmp, var, tt);
- value* v (tmp.vars.find_to_modify (var));
+ value* v (tmp.vars.find_to_modify (var).first);
assert (v != nullptr);
// Steal the value, the scope is going away.