[clang] 1865048 - [clang][Serialization] Add the missing block info (#122976)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 15 09:58:27 PST 2025
Author: Steven Wu
Date: 2025-01-15T09:58:23-08:00
New Revision: 18650480cb2ea46c9e8236c83593216af80fa25c
URL: https://github.com/llvm/llvm-project/commit/18650480cb2ea46c9e8236c83593216af80fa25c
DIFF: https://github.com/llvm/llvm-project/commit/18650480cb2ea46c9e8236c83593216af80fa25c.diff
LOG: [clang][Serialization] Add the missing block info (#122976)
HEADER_SEARCH_ENTRY_USAGE and VFS_USAGE were missing from the block info
block. Add the missing info so `llvm-bcanalyzer` can read them
correctly.
Added:
Modified:
clang/lib/Serialization/ASTWriter.cpp
Removed:
################################################################################
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index a6f8c6009f1ffa..1cc6a9b7950078 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1154,6 +1154,8 @@ void ASTWriter::WriteBlockInfoBlock() {
RECORD(DIAGNOSTIC_OPTIONS);
RECORD(HEADER_SEARCH_PATHS);
RECORD(DIAG_PRAGMA_MAPPINGS);
+ RECORD(HEADER_SEARCH_ENTRY_USAGE);
+ RECORD(VFS_USAGE);
#undef RECORD
#undef BLOCK
More information about the cfe-commits
mailing list