From: Anna Zaks Date: Thu, 5 Apr 2012 02:10:14 +0000 (+0000) Subject: [analyzer] Remove redundant if statement (pointed out by Ted). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f4705faae9fc10e21be95eb39317f714cf8307f;p=clang [analyzer] Remove redundant if statement (pointed out by Ted). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154075 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/SVals.cpp b/lib/StaticAnalyzer/Core/SVals.cpp index 53ebae2814..b94aff449d 100644 --- a/lib/StaticAnalyzer/Core/SVals.cpp +++ b/lib/StaticAnalyzer/Core/SVals.cpp @@ -103,10 +103,6 @@ SymbolRef SVal::getAsSymbol() const { if (const nonloc::SymbolVal *X = dyn_cast(this)) return X->getSymbol(); - if (const nonloc::SymbolVal *X = dyn_cast(this)) - if (SymbolRef Y = X->getSymbol()) - return Y; - return getAsLocSymbol(); }