projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ae1823
)
Fix an assert (and tests in --debug mode) after #921.
author
Nico Weber
<thakis@chromium.org>
Thu, 9 Apr 2015 18:41:40 +0000
(11:41 -0700)
committer
Nico Weber
<thakis@chromium.org>
Thu, 9 Apr 2015 18:41:40 +0000
(11:41 -0700)
src/eval_env.cc
patch
|
blob
|
history
diff --git
a/src/eval_env.cc
b/src/eval_env.cc
index
e03a82e
..
e991d21
100644
(file)
--- 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) {
}
void BindingEnv::AddRule(const Rule* rule) {
- assert(LookupRule(rule->name()) == NULL);
+ assert(LookupRule
CurrentScope
(rule->name()) == NULL);
rules_[rule->name()] = rule;
}
rules_[rule->name()] = rule;
}