mareko added a comment. Using the new return behavior only for the calling conventions that Mesa doesn't use sounds like the right solution. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87674/new/ https://reviews.llvm.org/D87674