Index: src/effects.h |
diff --git a/src/effects.h b/src/effects.h |
index 8cf5a88ee423f0ead91714ccd7fd35a8c705b58e..70c9a97a9c6bddb2d50df81c15b55bb3d117358c 100644 |
--- a/src/effects.h |
+++ b/src/effects.h |
@@ -195,15 +195,15 @@ class EffectsBase { |
typedef typename Mapping::Locator Locator; |
bool Contains(Var var) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
return map_->Contains(var); |
} |
bool Find(Var var, Locator* locator) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
return map_->Find(var, locator); |
} |
bool Insert(Var var, Locator* locator) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
return map_->Insert(var, locator); |
} |
@@ -259,7 +259,7 @@ class NestedEffectsBase { |
bool is_empty() { return node_ == NULL; } |
bool Contains(Var var) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
for (Node* node = node_; node != NULL; node = node->previous) { |
if (node->effects.Contains(var)) return true; |
} |
@@ -267,7 +267,7 @@ class NestedEffectsBase { |
} |
bool Find(Var var, Locator* locator) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
for (Node* node = node_; node != NULL; node = node->previous) { |
if (node->effects.Find(var, locator)) return true; |
} |
@@ -293,7 +293,7 @@ class NestedEffectsBase { |
template<class Var, Var kNoVar> |
bool NestedEffectsBase<Var, kNoVar>::Insert(Var var, Locator* locator) { |
- ASSERT(var != kNoVar); |
+ DCHECK(var != kNoVar); |
if (!node_->effects.Insert(var, locator)) return false; |
Locator shadowed; |
for (Node* node = node_->previous; node != NULL; node = node->previous) { |
@@ -326,7 +326,7 @@ class NestedEffects: public |
NestedEffects Pop() { |
NestedEffects result = *this; |
result.pop(); |
- ASSERT(!this->is_empty()); |
+ DCHECK(!this->is_empty()); |
return result; |
} |
}; |