From 5ee7238bda57e711749be799e9824bfa2d791192 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 9 Apr 2015 11:41:40 -0700 Subject: Fix an assert (and tests in --debug mode) after #921. --- src/eval_env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eval_env.cc b/src/eval_env.cc index e03a82e..e991d21 100644 --- a/src/eval_env.cc +++ b/src/eval_env.cc @@ -30,7 +30,7 @@ void BindingEnv::AddBinding(const string& key, const string& val) { } void BindingEnv::AddRule(const Rule* rule) { - assert(LookupRule(rule->name()) == NULL); + assert(LookupRuleCurrentScope(rule->name()) == NULL); rules_[rule->name()] = rule; } -- cgit v0.12