Index: llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp =================================================================== --- llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp +++ llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp @@ -216,7 +216,7 @@ if (MF.size() != NumBlocks) { MachineOptimizationRemarkMissed R("gisel-select", "GISelFailure", MF.getFunction().getSubprogram(), - /*MBB=*/nullptr); + &MF.front()); R << "inserting blocks is not supported yet"; reportGISelFailure(MF, TPC, MORE, R); return false; Index: llvm/lib/CodeGen/GlobalISel/Legalizer.cpp =================================================================== --- llvm/lib/CodeGen/GlobalISel/Legalizer.cpp +++ llvm/lib/CodeGen/GlobalISel/Legalizer.cpp @@ -321,7 +321,7 @@ if (MF.size() != NumBlocks) { MachineOptimizationRemarkMissed R("gisel-legalize", "GISelFailure", MF.getFunction().getSubprogram(), - /*MBB=*/nullptr); + &MF.front()); R << "inserting blocks is not supported yet"; reportGISelFailure(MF, TPC, MORE, R); return false;