summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit7d5389e4b3820605e158cbcd4dd1d33711d96b4d (patch)
tree6ce9b87dd8621fe26dd24a021d8b285fee50b1a7 /clang/lib
parentc35325c6988ba3466b3ac6d705846b47fbb11f0d (diff)
downloadbcm5719-llvm-7d5389e4b3820605e158cbcd4dd1d33711d96b4d.tar.gz
bcm5719-llvm-7d5389e4b3820605e158cbcd4dd1d33711d96b4d.zip
- Revert r59229 and r59232: AllocRegion should be immutable.
- Temporarily disabled test Analysis/array-struct.c for region store. llvm-svn: 59245
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 76e356be4d3..38eeaddcb84 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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())));
}
OpenPOWER on IntegriCloud