Skip to content

Commit 9306f4a

Browse files
author
Jessica Paquette
committed
[MachineOutliner] Add RegState::Define to LDRXpost in insertOutlinedCall
This fixes a MachineVerifier failure in machine-outliner.mir. Not explicitly adding RegState::Define to the LR argument makes it unhappy because an explicit definition is marked as a use. Build failure: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/7496/testReport/junit/LLVM/CodeGen_AArch64/machine_outliner_mir/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310671 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a65cb63 commit 9306f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4626,7 +4626,7 @@ MachineBasicBlock::iterator AArch64InstrInfo::insertOutlinedCall(
46264626
// Restore the link register.
46274627
MachineInstr *LDRXpost = BuildMI(MF, DebugLoc(), get(AArch64::LDRXpost))
46284628
.addReg(AArch64::SP, RegState::Define)
4629-
.addReg(AArch64::LR)
4629+
.addReg(AArch64::LR, RegState::Define)
46304630
.addReg(AArch64::SP)
46314631
.addImm(16);
46324632
It = MBB.insert(It, LDRXpost);

0 commit comments

Comments
 (0)