]> granicus.if.org Git - llvm/commitdiff
[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 dfb097ac770406f47d43ec747a825f8f4c61498f..63f9198d594233d6e9f581721deddc913e4846d9 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();
   }