summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-12 07:33:52 +0000
committerChris Lattner <sabre@nondot.org>2008-12-12 07:33:52 +0000
commitee99aa63cae08baf5c525cd7debe099f5af1607c (patch)
treeaa3b52945065305f3950fcc78111ef092b6465b1
parentb9d23802043893104d09a6312c692673546b84a9 (diff)
downloadbcm5719-llvm-ee99aa63cae08baf5c525cd7debe099f5af1607c.tar.gz
bcm5719-llvm-ee99aa63cae08baf5c525cd7debe099f5af1607c.zip
fix breakage I introduced in r60938
llvm-svn: 60941
-rw-r--r--clang/include/clang/Analysis/PathSensitive/MemRegion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Analysis/PathSensitive/MemRegion.h b/clang/include/clang/Analysis/PathSensitive/MemRegion.h
index 50d084f22b7..5da0ccafc24 100644
--- a/clang/include/clang/Analysis/PathSensitive/MemRegion.h
+++ b/clang/include/clang/Analysis/PathSensitive/MemRegion.h
@@ -420,8 +420,8 @@ class ElementRegion : public TypedRegion {
ElementRegion(SVal Idx, const MemRegion* sReg)
: TypedRegion(sReg, ElementRegionKind), Index(Idx) {
- assert(isa<nonloc::ConcreteInt>(&Idx) &&
- cast<nonloc::ConcreteInt>(&Idx)->getValue().isSigned() &&
+ assert((!isa<nonloc::ConcreteInt>(&Idx) ||
+ cast<nonloc::ConcreteInt>(&Idx)->getValue().isSigned()) &&
"The index must be signed");
}
OpenPOWER on IntegriCloud