Skip to content

Commit 86471a9

Browse files
arsenmcdevadas
andauthored
Update llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Co-authored-by: Christudasan Devadasan <[email protected]>
1 parent 19351f4 commit 86471a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@ bool SIInstrInfo::foldImmediate(MachineInstr &UseMI, MachineInstr &DefMI,
34733473
assert(UseMI.getOperand(1).getReg().isVirtual());
34743474
}
34753475

3476-
MachineFunction *MF = UseMI.getParent()->getParent();
3476+
MachineFunction *MF = UseMI.getMF();
34773477
const MCInstrDesc &NewMCID = get(NewOpc);
34783478
const TargetRegisterClass *NewDefRC = getRegClass(NewMCID, 0, &RI, *MF);
34793479

0 commit comments

Comments
 (0)