[llvm] r316257 - [SelectionDAG] Use isa to silence unused variable warning (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 21:57:03 PDT 2017
Author: fhahn
Date: Fri Oct 20 21:57:03 2017
New Revision: 316257
URL: http://llvm.org/viewvc/llvm-project?rev=316257&view=rev
Log:
[SelectionDAG] Use isa to silence unused variable warning (NFC).
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=316257&r1=316256&r2=316257&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Oct 20 21:57:03 2017
@@ -2966,7 +2966,7 @@ unsigned SelectionDAG::ComputeNumSignBit
unsigned Tmp, Tmp2;
unsigned FirstAnswer = 1;
- if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
+ if (isa<ConstantSDNode>(Op)) {
const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue();
return Val.getNumSignBits();
}
More information about the llvm-commits
mailing list