[cfe-commits] r66409 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sun Mar 8 23:49:51 PDT 2009
Author: zhongxingxu
Date: Mon Mar 9 01:49:50 2009
New Revision: 66409
URL: http://llvm.org/viewvc/llvm-project?rev=66409&view=rev
Log:
Fix a serious bug in RegionStore: we got the new state with new store from
Bind() and BindStruct(), but we returned a state with the old store.
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=66409&r1=66408&r2=66409&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Mon Mar 9 01:49:50 2009
@@ -1046,8 +1046,6 @@
St = state.set<RegionDefaultValue>(R, NonLoc::MakeIntVal(getBasicVals(), 0,
false));
- Store store = St->getStore();
-
ConstantArrayType* CAT = cast<ConstantArrayType>(T.getTypePtr());
llvm::APSInt Size(CAT->getSize(), false);
@@ -1076,7 +1074,7 @@
St = Bind(St, loc::MemRegionVal(ER), V);
}
- return StateMgr.MakeStateWithStore(St, store);
+ return St;
}
@@ -1098,7 +1096,7 @@
St = Bind(St, Loc::MakeVal(ER), *VI);
}
- return StateMgr.MakeStateWithStore(St, store);
+ return St;
}
const GRState*
More information about the cfe-commits
mailing list