[cfe-commits] r62129 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Ted Kremenek
kremenek at apple.com
Mon Jan 12 17:03:27 PST 2009
Author: kremenek
Date: Mon Jan 12 19:03:27 2009
New Revision: 62129
URL: http://llvm.org/viewvc/llvm-project?rev=62129&view=rev
Log:
Invert condition on branch (was causing RegionStore::ArrayToPointer to return 'unknown' on most cases.
Modified:
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=62129&r1=62128&r2=62129&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Mon Jan 12 19:03:27 2009
@@ -452,7 +452,7 @@
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));
More information about the cfe-commits
mailing list