Skip to content

Commit

Permalink
[GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off bu…
Browse files Browse the repository at this point in the history
…ilds after D99463
  • Loading branch information
MaskRay committed Mar 30, 2021
1 parent c2ebad8 commit 73adc05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ bool AArch64LegalizerInfo::legalizeRotate(MachineInstr &MI,
// is 64b with an extension.
Register AmtReg = MI.getOperand(2).getReg();
LLT AmtTy = MRI.getType(AmtReg);
(void)AmtTy;
assert(AmtTy.isScalar() && "Expected a scalar rotate");
assert(AmtTy.getSizeInBits() < 64 && "Expected this rotate to be legal");
auto NewAmt = Helper.MIRBuilder.buildSExt(LLT::scalar(64), AmtReg);
Expand Down

0 comments on commit 73adc05

Please sign in to comment.