[clang] [llvm] [clang][Modules][Serialization] Avoid serializing duplicate source location entries for shared input files (PR #209795)

Ayokunle Amodu via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 08:08:42 PDT 2026


================
@@ -6152,6 +6196,9 @@ ASTFileSignature ASTWriter::WriteASTCore(Sema *SemaPtr, StringRef isysroot,
 
   // Write the control block
   WriteControlBlock(*PP, isysroot);
+  // Import locations in the control block must remain local, so start rewriting
+  // only after it has been written.
+  ControlBlockWritten = true;
----------------
ayokunle321 wrote:

Right. Have moved it.

https://github.com/llvm/llvm-project/pull/209795


More information about the cfe-commits mailing list