aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-13 15:42:31 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-13 15:42:31 +0000
commit82bd99f4db2454cc6e1b7bfaac6db25cb3444ddc (patch)
tree0ec25b87ec0cc13b97ba69ddd1784499505291fb /lib/Analysis/GRExprEngine.cpp
parente4d139374c64e7cf4ef29517076be691a71e1c23 (diff)
- Revert r59229 and r59232: AllocRegion should be immutable.
- Temporarily disabled test Analysis/array-struct.c for region store. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 76e356be4d..38eeaddcb8 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1681,26 +1681,6 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
continue;
}
- // Cast alloca'ed pointer to typed pointer.
- if (isa<loc::MemRegionVal>(V)) {
- if (const AllocaRegion* AR =
- dyn_cast<AllocaRegion>(cast<loc::MemRegionVal>(V).getRegion())) {
-
- // Set the AllocaRegion's type.
- const_cast<AllocaRegion*>(AR)->setType(T);
-
- // Set the CastExpr's value to a pointer to the first element.
- MemRegionManager& RM = getStateManager().getRegionManager();
-
- llvm::APSInt Zero(llvm::APInt::getNullValue(32), false);
- SVal ZeroIdx(nonloc::ConcreteInt(getBasicVals().getValue(Zero)));
- const ElementRegion* ER = RM.getElementRegion(ZeroIdx, AR);
-
- MakeNode(Dst, CastE, N, BindExpr(St, CastE, loc::MemRegionVal(ER)));
- continue;
- }
- }
-
// All other cases.
MakeNode(Dst, CastE, N, BindExpr(St, CastE, EvalCast(V, CastE->getType())));
}