[llvm] [SPIRV] Fix crash when lowering functions with aggregate return types (PR #209027)

Sparsh via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 03:42:44 PDT 2026


SparshGarg999 wrote:

Hi @MrSidims,

Thanks for your patience and for pointing this out.

This was completely my mistake during staging. I accidentally staged a local state where `SPIRVPrepareFunctions.cpp` had been cleared, which resulted in the large deletion. I also missed staging the intended changes to `SPIRVEmitIntrinsics.cpp` and the new regression test (`llvm/test/CodeGen/SPIRV/function/aggregate-return.ll`).

I've corrected the staging issue and force-pushed the intended, narrowly scoped fix. The pass has been restored, the missing changes have been included, and the regression test has been added.

Could you please take another look when you have a chance? Thanks again!


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


More information about the llvm-commits mailing list