summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/Environment.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-07-25 22:09:19 +0000
committerTed Kremenek <kremenek@apple.com>2012-07-25 22:09:19 +0000
commit80b4ac76c5a7b99c143cd89f13ca192d24c51c2f (patch)
tree0b71205e28336c8b89224d65fea6e424315556b6 /clang/lib/StaticAnalyzer/Core/Environment.cpp
parent2aa45cf43eab5239b119d2464cd662af73625d62 (diff)
downloadbcm5719-llvm-80b4ac76c5a7b99c143cd89f13ca192d24c51c2f.tar.gz
bcm5719-llvm-80b4ac76c5a7b99c143cd89f13ca192d24c51c2f.zip
Remove the ability to stash arbitrary pointers into UndefinedVal (no longer needed).
llvm-svn: 160764
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/Environment.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp
index 540eb88747f..29030914e7e 100644
--- a/clang/lib/StaticAnalyzer/Core/Environment.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp
@@ -230,13 +230,6 @@ EnvironmentManager::removeDeadBindings(Environment Env,
RSScaner.scan(X);
continue;
}
-
- // Otherwise the expression is dead with a couple exceptions.
- // Do not misclean LogicalExpr or ConditionalOperator. It is dead at the
- // beginning of itself, but we need its UndefinedVal to determine its
- // SVal.
- if (X.isUndef() && cast<UndefinedVal>(X).getData())
- EBMapRef = EBMapRef.add(BlkExpr, X);
}
// Go through he deferred locations and add them to the new environment if
OpenPOWER on IntegriCloud