1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[SelectionDAG] Use isa to silence unused variable warning (NFC).

llvm-svn: 316257
This commit is contained in:
Florian Hahn 2017-10-21 04:57:03 +00:00
parent 722fe7b374
commit d87d8e53bf

View 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();
}