aboutsummaryrefslogtreecommitdiff
path: root/include/clang/StaticAnalyzer/Core
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-05 01:27:54 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-05 01:27:54 +0000
commit41f3f3a4792f46787632fdb94f952f6b3ce3f4ae (patch)
tree9b3e3d5403a69659df2ddc9efa87ce2b22094074 /include/clang/StaticAnalyzer/Core
parent2a268f2629b49958427e8eb02f2c3d565be71acc (diff)
Silence a number of static analyzer warnings with assertions and such.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
index d7acb4842a..af2f365ead 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
@@ -651,9 +651,11 @@ public:
}
bool operator==(const referenced_vars_iterator &I) const {
+ assert((R == 0) == (I.R == 0));
return I.R == R;
}
bool operator!=(const referenced_vars_iterator &I) const {
+ assert((R == 0) == (I.R == 0));
return I.R != R;
}
referenced_vars_iterator &operator++() {