[llvm] d997a72 - Fix build break in MIRPrinter (#122630)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 11 21:57:03 PST 2025
Author: Daniel Paoliello
Date: 2025-01-11T21:56:59-08:00
New Revision: d997a722c194feec5f3a94dec5acdce59ac5e55b
URL: https://github.com/llvm/llvm-project/commit/d997a722c194feec5f3a94dec5acdce59ac5e55b
DIFF: https://github.com/llvm/llvm-project/commit/d997a722c194feec5f3a94dec5acdce59ac5e55b.diff
LOG: Fix build break in MIRPrinter (#122630)
Added:
Modified:
llvm/lib/CodeGen/MIRPrinter.cpp
Removed:
################################################################################
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