aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
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 c403eea..06910dc 100644
--- a/build2/file.cxx
+++ b/build2/file.cxx
@@ -339,7 +339,7 @@ namespace build2
temp_scope tmp (s.global ());
p.parse_variable (lex, tmp, var, tt);
- value* v (tmp.vars.find (var));
+ value* v (tmp.vars.find_to_modify (var));
assert (v != nullptr);
// Steal the value, the scope is going away.