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:
parent
722fe7b374
commit
d87d8e53bf
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user