forked from OSchip/llvm-project
Invert condition on branch (was causing RegionStore::ArrayToPointer to return 'unknown' on most cases.
llvm-svn: 62129
This commit is contained in:
parent
c5e61070f6
commit
167f2fa5f4
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue