summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ParentMap.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-20 00:47:45 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-20 00:47:45 +0000
commite5fe617e2bc7f0f7a1ba31d87fbe111faf6fe0c4 (patch)
tree1aeaf9253df974e157712b400e1b3d31cbe27885 /clang/lib/AST/ParentMap.cpp
parent0c8d6c9d275184bbe64907d993b1fac1a74b437c (diff)
downloadbcm5719-llvm-e5fe617e2bc7f0f7a1ba31d87fbe111faf6fe0c4.tar.gz
bcm5719-llvm-e5fe617e2bc7f0f7a1ba31d87fbe111faf6fe0c4.zip
Dead stores checker: Fix <rdar://problem/6506065> by being more selective when say that a store is dead even though the computed value is used in the enclosing expression.
llvm-svn: 62552
Diffstat (limited to 'clang/lib/AST/ParentMap.cpp')
-rw-r--r--clang/lib/AST/ParentMap.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/AST/ParentMap.cpp b/clang/lib/AST/ParentMap.cpp
index 82341c78f82..54472ecb963 100644
--- a/clang/lib/AST/ParentMap.cpp
+++ b/clang/lib/AST/ParentMap.cpp
@@ -45,11 +45,3 @@ Stmt* ParentMap::getParent(Stmt* S) const {
MapTy::iterator I = M->find(S);
return I == M->end() ? 0 : I->second;
}
-
-bool ParentMap::isSubExpr(Stmt* S) const {
- if (!isa<Expr>(S))
- return false;
-
- Stmt* P = getParent(S);
- return P ? !isa<CompoundStmt>(P) : false;
-}
OpenPOWER on IntegriCloud