jhuber6 wrote: We probably need an exception or something in the IR linker to avoid printing warnings for a case like this. I think we do the exact same thing for the CUDA device library IR. https://github.com/llvm/llvm-project/pull/163011