Skip to content

Commit d997a72

Browse files
authored
Fix build break in MIRPrinter (#122630)
1 parent 5ee0a71 commit d997a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MIRPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ void MIRPrinter::convertMachineMetadataNodes(yaml::MachineFunction &YMF,
604604
void MIRPrinter::convertCalledGlobals(yaml::MachineFunction &YMF,
605605
const MachineFunction &MF,
606606
MachineModuleSlotTracker &MST) {
607-
for (const auto [CallInst, CG] : MF.getCalledGlobals()) {
607+
for (const auto &[CallInst, CG] : MF.getCalledGlobals()) {
608608
// If the call instruction was dropped, then we don't need to print it.
609609
auto BB = CallInst->getParent();
610610
if (BB) {

0 commit comments

Comments
 (0)