[llvm] [SPIR-V] Fix bad insertion for type/id MIR (PR #109686)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 04:51:28 PDT 2024
================
@@ -336,6 +347,7 @@ class SPIRVGlobalRegistry {
MachineFunction *setCurrentFunc(MachineFunction &MF) {
MachineFunction *Ret = CurMF;
CurMF = &MF;
+ LastInsertedType = nullptr;
----------------
Keenuts wrote:
Ahh thought we traversed each function once. Makes sense. I'll move that into a map so we can save context.
https://github.com/llvm/llvm-project/pull/109686
More information about the llvm-commits
mailing list