From 34f57ff3e81812d1e452228024c4a3a58961876c Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sat, 21 Oct 2017 04:57:03 +0000 Subject: [PATCH] [SelectionDAG] Use isa to silence unused variable warning (NFC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316257 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index dfb097ac770..63f9198d594 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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(); } -- 2.11.0