[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 05:36:56 PDT 2024


================
@@ -336,6 +347,7 @@ class SPIRVGlobalRegistry {
   MachineFunction *setCurrentFunc(MachineFunction &MF) {
     MachineFunction *Ret = CurMF;
     CurMF = &MF;
+    LastInsertedType = nullptr;
----------------
Keenuts wrote:

Should be done now, thanks! Still 71 passing tests.

https://github.com/llvm/llvm-project/pull/109686


More information about the llvm-commits mailing list