summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-10-29 01:13:28 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-10-29 01:13:28 +0000
commitcfa9d8e9a086287d11326b59e61a3200cbbf812a (patch)
treeba199fb9a284bed2ef7c43ebbdb217393e217cbe
parente7fbf9f4253e9f07a9c9e826fc623395817543c1 (diff)
downloadbcm5719-llvm-cfa9d8e9a086287d11326b59e61a3200cbbf812a.tar.gz
bcm5719-llvm-cfa9d8e9a086287d11326b59e61a3200cbbf812a.zip
MemSpaceRegions could be uninitialized. We only require R is a real region.
llvm-svn: 58356
-rw-r--r--clang/include/clang/Analysis/PathSensitive/MemRegion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/PathSensitive/MemRegion.h b/clang/include/clang/Analysis/PathSensitive/MemRegion.h
index 053ad440533..bfd931fb6ce 100644
--- a/clang/include/clang/Analysis/PathSensitive/MemRegion.h
+++ b/clang/include/clang/Analysis/PathSensitive/MemRegion.h
@@ -420,7 +420,7 @@ public:
MemSpaceRegion* getUnknownRegion();
bool isGlobalsRegion(const MemRegion* R) {
- assert(R && globals);
+ assert(R);
return R == globals;
}
OpenPOWER on IntegriCloud