From e5fe617e2bc7f0f7a1ba31d87fbe111faf6fe0c4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 20 Jan 2009 00:47:45 +0000 Subject: Dead stores checker: Fix 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 --- clang/lib/AST/ParentMap.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/AST/ParentMap.cpp') 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(S)) - return false; - - Stmt* P = getParent(S); - return P ? !isa(P) : false; -} -- cgit v1.2.3