diff options
author | Nico Weber <thakis@chromium.org> | 2015-04-09 18:41:40 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-04-09 18:41:40 (GMT) |
commit | 5ee7238bda57e711749be799e9824bfa2d791192 (patch) | |
tree | 1093212ce9c3dfe3c66a63217db8b1acf2443235 /src | |
parent | 2ae18234b0dc7d4c9968a827a5147806f35c3dbd (diff) | |
download | Ninja-5ee7238bda57e711749be799e9824bfa2d791192.zip Ninja-5ee7238bda57e711749be799e9824bfa2d791192.tar.gz Ninja-5ee7238bda57e711749be799e9824bfa2d791192.tar.bz2 |
Fix an assert (and tests in --debug mode) after #921.
Diffstat (limited to 'src')
-rw-r--r-- | src/eval_env.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |