summaryrefslogtreecommitdiff
path: root/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
commit7f5fce7200fdbf03f7d70134a57271e584fcb766 (patch)
treebac91a77f940d3ecc6e2d0bb9262754a990592dd /lib/AST/ParentMap.cpp
parent06172d680766ffb96a22c48c390ec3e0fd41625b (diff)
downloadclang-7f5fce7200fdbf03f7d70134a57271e584fcb766.tar.gz
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ParentMap.cpp')
-rw-r--r--lib/AST/ParentMap.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/AST/ParentMap.cpp b/lib/AST/ParentMap.cpp
index 82341c78f8..54472ecb96 100644
--- a/lib/AST/ParentMap.cpp
+++ b/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;
-}