diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-13 01:03:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-13 01:03:27 +0000 |
commit | bbee1a790f77b42a0bcd79bdd3d367e46042db67 (patch) | |
tree | 5e55ad46d4c2627d1ebf64bb1363f6dcaa5da9a1 /lib/Analysis/RegionStore.cpp | |
parent | 88b4bf202a6bb67ed241281b8dea973f38df2782 (diff) |
Invert condition on branch (was causing RegionStore::ArrayToPointer to return 'unknown' on most cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 598107c1ea..9041930a84 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -452,7 +452,7 @@ SVal RegionStoreManager::ArrayToPointer(SVal Array) { const MemRegion* R = cast<loc::MemRegionVal>(&Array)->getRegion(); const TypedRegion* ArrayR = dyn_cast<TypedRegion>(R); - if (ArrayR) + if (!ArrayR) return UnknownVal(); nonloc::ConcreteInt Idx(getBasicVals().getZeroWithPtrWidth(false)); |