Fix build break in MIRPrinter (#122630)

This commit is contained in:
Daniel Paoliello
2025-01-11 21:56:59 -08:00
committed by GitHub
parent 5ee0a71df9
commit d997a722c1

View File

@@ -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) {