diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-29 01:13:28 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-29 01:13:28 +0000 |
commit | ce63911d6bdd795f63365723d4cdaa6998529e1e (patch) | |
tree | da95f4e67cce549bf92d4e9bd478ef791c4a81af | |
parent | 27c8dc06f65d7abcf6a7e7f64a7960c9a150ca01 (diff) |
MemSpaceRegions could be uninitialized. We only require R is a real region.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58356 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Analysis/PathSensitive/MemRegion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h index 053ad44053..bfd931fb6c 100644 --- a/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/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; } |