aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-02-04 02:30:11 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-02-04 02:30:11 +0000
commit97c4d4759da403bccaaccdadb513164c84c85bef (patch)
treed0ffda431aed45de25f9cc6262ba1aec2b7bb9c0 /lib/Analysis/GRExprEngine.cpp
parent1c4a49813bcf9e24711e5963ea6b2c27e5113a6e (diff)
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 616006cc8e..bb34763df7 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -978,8 +978,7 @@ void GRExprEngine::EvalStore(NodeSet& Dst, Expr* Ex, NodeTy* Pred,
}
void GRExprEngine::EvalLoad(NodeSet& Dst, Expr* Ex, NodeTy* Pred,
- const GRState* St, SVal location,
- bool CheckOnly) {
+ const GRState* St, SVal location) {
// Evaluate the location (checks for bad dereferences).
Pred = EvalLocation(Ex, Pred, St, location);
@@ -995,15 +994,6 @@ void GRExprEngine::EvalLoad(NodeSet& Dst, Expr* Ex, NodeTy* Pred,
// FIXME: Currently symbolic analysis "generates" new symbols
// for the contents of values. We need a better approach.
- // FIXME: The "CheckOnly" option exists only because Array and Field
- // loads aren't fully implemented. Eventually this option will go away.
- assert(!CheckOnly);
-
- if (CheckOnly) {
- Dst.Add(Pred);
- return;
- }
-
if (location.isUnknown()) {
// This is important. We must nuke the old binding.
MakeNode(Dst, Ex, Pred, BindExpr(St, Ex, UnknownVal()), K);