[llvm] [SPIR-V] Fix an undefined behaviour in the SPIRV emit-intrinsics pass (PR #123620)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 06:41:34 PST 2025


================
@@ -2475,8 +2475,10 @@ void SPIRVEmitIntrinsics::parseFunDeclarations(Module &M) {
     if (DemangledName.empty())
       continue;
     // allow only OpGroupAsyncCopy use case at the moment
-    auto [Grp, Opcode, ExtNo] =
-        SPIRV::mapBuiltinToOpcode(DemangledName, InstrSet);
----------------
Keenuts wrote:

Should this variable be removed from the class?

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


More information about the llvm-commits mailing list