Skip to content

Commit c1971ce

Browse files
author
Tony Linthicum
committed
merge of PR 149367
1 parent abc85a6 commit c1971ce

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
@@ -470,8 +470,7 @@ inline MachineInstrBuilder BuildMIAfter(MachineBasicBlock &BB,
470470
MachineInstr *MI = MF.CreateMachineInstr(MCID, MIMD.getDL());
471471
BB.insertAfter(I, MI);
472472
return MachineInstrBuilder(MF, MI)
473-
.setPCSections(MIMD.getPCSections())
474-
.setMMRAMetadata(MIMD.getMMRAMetadata());
473+
.copyMIMetadata(MIMD);
475474
}
476475

477476
inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,

0 commit comments

Comments
 (0)