forked from OSchip/llvm-project
[GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D99463
This commit is contained in:
parent
c2ebad8d55
commit
73adc05ced
|
@ -760,6 +760,7 @@ bool AArch64LegalizerInfo::legalizeRotate(MachineInstr &MI,
|
||||||
// is 64b with an extension.
|
// is 64b with an extension.
|
||||||
Register AmtReg = MI.getOperand(2).getReg();
|
Register AmtReg = MI.getOperand(2).getReg();
|
||||||
LLT AmtTy = MRI.getType(AmtReg);
|
LLT AmtTy = MRI.getType(AmtReg);
|
||||||
|
(void)AmtTy;
|
||||||
assert(AmtTy.isScalar() && "Expected a scalar rotate");
|
assert(AmtTy.isScalar() && "Expected a scalar rotate");
|
||||||
assert(AmtTy.getSizeInBits() < 64 && "Expected this rotate to be legal");
|
assert(AmtTy.getSizeInBits() < 64 && "Expected this rotate to be legal");
|
||||||
auto NewAmt = Helper.MIRBuilder.buildSExt(LLT::scalar(64), AmtReg);
|
auto NewAmt = Helper.MIRBuilder.buildSExt(LLT::scalar(64), AmtReg);
|
||||||
|
|
Loading…
Reference in New Issue