Skip to content

Commit 55eb87f

Browse files
- Fix assert
1 parent 9e70dca commit 55eb87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/SMEPeepholeOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ bool SMEPeepholeOpt::optimizeStartStopPairs(
242242
// -> %9:zpr2mul2 = FORM_TRANSPOSED_REG_TUPLE_X2_PSEUDO %5:zpr, %8:zpr
243243
//
244244
bool SMEPeepholeOpt::visitRegSequence(MachineInstr &MI) {
245-
assert(MF.getRegInfo().isSSA() && "Expected to be run on SSA form!");
245+
assert(MI.getMF()->getRegInfo().isSSA() && "Expected to be run on SSA form!");
246246

247247
MachineRegisterInfo &MRI = MI.getMF()->getRegInfo();
248248
switch (MRI.getRegClass(MI.getOperand(0).getReg())->getID()) {

0 commit comments

Comments
 (0)