[clang] [llvm] [SPIRV] `getMBB()` isn't always safe to call (PR #236948)
Marcos Maronas via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 30 05:48:53 PDT 2026
================
@@ -266,7 +266,8 @@ const MachineInstr *SPIRVGlobalRegistry::createConstOrTypeAtFunctionEntry(
MachineIRBuilder &MIRBuilder,
std::function<MachineInstr *(MachineIRBuilder &)> Op) {
auto oldInsertPoint = MIRBuilder.getInsertPt();
- MachineBasicBlock *OldMBB = &MIRBuilder.getMBB();
+ MachineBasicBlock *OldMBB =
----------------
maarquitos14 wrote:
That works for me.
https://github.com/llvm/llvm-project/pull/236948
More information about the cfe-commits
mailing list