Skip to content

Commit cb0ca7e

Browse files
author
Tony Linthicum
committed
merge of PR 149367
1 parent 9b52c18 commit cb0ca7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/CodeGen/MachineInstrBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ inline MachineInstrBuilder BuildMIAfter(MachineBasicBlock &BB,
475475
MachineInstr *MI = MF.CreateMachineInstr(MCID, MIMD.getDL());
476476
BB.insertAfter(I, MI);
477477
return MachineInstrBuilder(MF, MI)
478-
.setPCSections(MIMD.getPCSections())
479-
.setMMRAMetadata(MIMD.getMMRAMetadata());
478+
.copyMIMetadata(MIMD);
480479
}
481480

482481
inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,

0 commit comments

Comments
 (0)