diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2017-10-21 04:57:03 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2017-10-21 04:57:03 +0000 |
| commit | 3d81254b7c3b78a77b5c7ffe15fcaf90cd8894b1 (patch) | |
| tree | bf04afdd1764b0fb42b69a83920bce483d600a6f /llvm/lib/CodeGen | |
| parent | 554151160f7136a9eb063dd17d79ec655769cb68 (diff) | |
| download | bcm5719-llvm-3d81254b7c3b78a77b5c7ffe15fcaf90cd8894b1.tar.gz bcm5719-llvm-3d81254b7c3b78a77b5c7ffe15fcaf90cd8894b1.zip | |
[SelectionDAG] Use isa to silence unused variable warning (NFC).
llvm-svn: 316257
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ConstantSDNode>(Op)) { + if (isa<ConstantSDNode>(Op)) { const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue(); return Val.getNumSignBits(); } |

