From 7f5fce7200fdbf03f7d70134a57271e584fcb766 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62552 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ParentMap.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/AST/ParentMap.cpp') 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(S)) - return false; - - Stmt* P = getParent(S); - return P ? !isa(P) : false; -} -- cgit v1.2.1