================ @@ -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; ---------------- ChuanqiXu9 wrote:
nit: shouldn't we do this in WriteControlBlock? https://github.com/llvm/llvm-project/pull/209795 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
