[cfe-commits] r154075 - /cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
Anna Zaks
ganna at apple.com
Wed Apr 4 19:10:14 PDT 2012
Author: zaks
Date: Wed Apr 4 21:10:14 2012
New Revision: 154075
URL: http://llvm.org/viewvc/llvm-project?rev=154075&view=rev
Log:
[analyzer] Remove redundant if statement (pointed out by Ted).
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp?rev=154075&r1=154074&r2=154075&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp Wed Apr 4 21:10:14 2012
@@ -103,10 +103,6 @@
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();
}
More information about the cfe-commits
mailing list