nickdesaulniers added inline comments.
================ Comment at: clang/lib/CodeGen/CGExpr.cpp:4911 + if (!Clone) { + Clone = llvm::Function::Create(Fn->getFunctionType(), Fn->getLinkage(), + Fn->getAddressSpace(), ---------------- given the reported ICE, I wonder if we shouldn't be reusing the `Fn`'s linkage, but explicitly setting extern? Same with below. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D111009/new/ https://reviews.llvm.org/D111009 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits