]> granicus.if.org Git - clang/commitdiff
[analyzer] Remove redundant if statement (pointed out by Ted).
authorAnna Zaks <ganna@apple.com>
Thu, 5 Apr 2012 02:10:14 +0000 (02:10 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 5 Apr 2012 02:10:14 +0000 (02:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/SVals.cpp

index 53ebae2814bdf717d2744c7dd99f4790db73e90a..b94aff449d3a0f650cd23a28478237f451b135f1 100644 (file)
@@ -103,10 +103,6 @@ SymbolRef SVal::getAsSymbol() const {
   if (const nonloc::SymbolVal *X = dyn_cast<nonloc::SymbolVal>(this))
     return X->getSymbol();
 
-  if (const nonloc::SymbolVal *X = dyn_cast<nonloc::SymbolVal>(this))
-    if (SymbolRef Y = X->getSymbol())
-      return Y;
-
   return getAsLocSymbol();
 }