================
@@ -173,6 +174,16 @@ void BackendConsumer::HandleInterestingDecl(DeclGroupRef
D) {
// Links each entry in LinkModules into our module. Returns true on error.
bool BackendConsumer::LinkInModules(llvm::Module *M) {
+ // Builtin bitcode is internalized into the module that links it, so each
+ // PTU of an incremental session needs its own copy. Plain bitcode files are
+ // still linked once.
+ if (LinkModules.empty() && LangOpts.IncrementalExtensions) {
----------------
vgvassilev wrote:
```suggestion
if (LangOpts.IncrementalExtensions && LinkModules.empty()) {
```
https://github.com/llvm/llvm-project/pull/229788
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits