diff options
author | Anna Zaks <ganna@apple.com> | 2012-06-07 20:18:08 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-06-07 20:18:08 +0000 |
commit | a7dcc996a980d29fa7fb7536d0f3f48e572b1ca9 (patch) | |
tree | 4a774a23ebdd7124cff1ef98968940ee68572510 /clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp | |
parent | a5d24ca453e44d0aab542a317d705c05e954101e (diff) | |
download | bcm5719-llvm-a7dcc996a980d29fa7fb7536d0f3f48e572b1ca9.tar.gz bcm5719-llvm-a7dcc996a980d29fa7fb7536d0f3f48e572b1ca9.zip |
[analyzer] Fixit for r158136.
I falsely assumed that the memory spaces are equal when we reach this
point, they might not be when memory space of one or more is stack or
Unknown. We don't want a region from Heap space alias something with
another memory space.
llvm-svn: 158165
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp index 9cbbece98e7..ad58a07c784 100644 --- a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp +++ b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp @@ -701,7 +701,7 @@ SVal SimpleSValBuilder::evalBinOpLL(ProgramStateRef state, // on each invocation. if (LeftBase != RightBase && ((!isa<SymbolicRegion>(LeftBase) && !isa<SymbolicRegion>(RightBase)) || - isa<HeapSpaceRegion>(LeftMS)) ){ + (isa<HeapSpaceRegion>(LeftMS) || isa<HeapSpaceRegion>(RightMS))) ){ switch (op) { default: return UnknownVal(); |