aboutsummaryrefslogtreecommitdiffstats
path: root/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'eval.cc')
-rw-r--r--eval.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.cc b/eval.cc
index 6322fc1..bc27af9 100644
--- a/eval.cc
+++ b/eval.cc
@@ -101,7 +101,8 @@ void Evaluator::EvalAssign(const AssignStmt* stmt) {
Var* rhs = EvalRHS(lhs, stmt->rhs, stmt->orig_rhs, stmt->op,
stmt->directive == AssignDirective::OVERRIDE);
if (rhs)
- lhs.SetGlobalVar(rhs);
+ lhs.SetGlobalVar(rhs,
+ stmt->directive == AssignDirective::OVERRIDE);
}
void Evaluator::EvalRule(const RuleStmt* stmt) {