tblah wrote: It turns out this was already handled in OMPIRBuilder: https://github.com/llvm/llvm-project/blob/cc51cbe27877aa7cc297f7e41afa5515edabcbdc/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp#L220 https://github.com/llvm/llvm-project/pull/139572