diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-08-25 20:51:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-08-25 20:51:30 +0000 |
commit | 1894dce96476dbe58c0e60d47f8987cbeb3d3869 (patch) | |
tree | 1968e5508a01c66260a9e35563bb1d96ae2aa379 /lib/Analysis/RegionStore.cpp | |
parent | 78ca7b3d34dda4ef584eb897985698ea062d07e1 (diff) |
Fix crash reported in <rdar://problem/7124210> by "back-porting" some of the
implicit cast logic in RegionStoreManager to BasicStoreManager. This involved
moving CastRetriedVal from RegionStoreManager to StoreManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 53ef054c53..9225bfbaae 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -299,9 +299,6 @@ public: SVal RetrieveFieldOrElementCommon(const GRState *state, const TypedRegion *R, QualType Ty, const MemRegion *superR); - SValuator::CastResult CastRetrievedVal(SVal val, const GRState *state, - const TypedRegion *R, QualType castTy); - /// Retrieve the values in a struct and return a CompoundVal, used when doing /// struct copy: /// struct s x, y; @@ -1247,17 +1244,6 @@ SVal RegionStoreManager::RetrieveArray(const GRState *state, #endif } -SValuator::CastResult RegionStoreManager::CastRetrievedVal(SVal V, - const GRState *state, - const TypedRegion *R, - QualType castTy) { - if (castTy.isNull()) - return SValuator::CastResult(state, V); - - ASTContext &Ctx = getContext(); - return ValMgr.getSValuator().EvalCast(V, state, castTy, R->getValueType(Ctx)); -} - //===----------------------------------------------------------------------===// // Binding values to regions. //===----------------------------------------------------------------------===// |