From 3d81254b7c3b78a77b5c7ffe15fcaf90cd8894b1 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sat, 21 Oct 2017 04:57:03 +0000 Subject: [SelectionDAG] Use isa to silence unused variable warning (NFC). llvm-svn: 316257 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index dfb097ac770..63f9198d594 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2966,7 +2966,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts, unsigned Tmp, Tmp2; unsigned FirstAnswer = 1; - if (auto *C = dyn_cast(Op)) { + if (isa(Op)) { const APInt &Val = cast(Op)->getAPIntValue(); return Val.getNumSignBits(); } -- cgit v1.2.3