[llvm] Fix build break in MIRPrinter (PR #122630)
Daniel Paoliello via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 11 21:56:18 PST 2025
https://github.com/dpaoliello created https://github.com/llvm/llvm-project/pull/122630
None
>From 86ce77c418eabd70b2caff3743e762b005517eb1 Mon Sep 17 00:00:00 2001
From: Daniel Paoliello <danpao at microsoft.com>
Date: Sat, 11 Jan 2025 21:55:45 -0800
Subject: [PATCH] Fix build break in MIRPrinter
---
llvm/lib/CodeGen/MIRPrinter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index b8e41cc789856e..b6da495590fe11 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -604,7 +604,7 @@ void MIRPrinter::convertMachineMetadataNodes(yaml::MachineFunction &YMF,
void MIRPrinter::convertCalledGlobals(yaml::MachineFunction &YMF,
const MachineFunction &MF,
MachineModuleSlotTracker &MST) {
- for (const auto [CallInst, CG] : MF.getCalledGlobals()) {
+ for (const auto &[CallInst, CG] : MF.getCalledGlobals()) {
// If the call instruction was dropped, then we don't need to print it.
auto BB = CallInst->getParent();
if (BB) {
More information about the llvm-commits
mailing list