[clang] [clang] Fix the crash when dumping deserialized decls (PR #133395)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 03:51:10 PDT 2025
================
@@ -57,6 +59,8 @@ class ASTDeserializationListener {
/// A module import was read from the AST file.
virtual void ModuleImportRead(serialization::SubmoduleID ID,
SourceLocation ImportLoc) {}
+ /// The deserialization of the AST file was finished.
+ virtual void FinishedDeserializing() {}
----------------
hokein wrote:
Oh, I guess the interface name might be misleading -- it doesn't fully align with `ASTReader::FinishedDeserializing()`. The listener is only called once when deserialization is completely finished (i.e., when `NumCurrentElementsDeserializing` reaches 0 and all pending actions have been processed).
https://github.com/llvm/llvm-project/pull/133395
More information about the cfe-commits
mailing list