OSDN Git Service

[SelectionDAG] Use isa to silence unused variable warning (NFC).
authorFlorian Hahn <florian.hahn@arm.com>
Sat, 21 Oct 2017 04:57:03 +0000 (04:57 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Sat, 21 Oct 2017 04:57:03 +0000 (04:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316257 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index dfb097a..63f9198 100644 (file)
@@ -2966,7 +2966,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
   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();
   }