[clang] [Serialization] Check for stack exhaustion when reading declarations (PR #79875)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 29 19:11:29 PDT 2024
================
@@ -9403,6 +9404,20 @@ DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) const {
return Diags.Report(Loc, DiagID);
}
+void ASTReader::warnStackExhausted(SourceLocation Loc) {
+ // When Sema is available, avoid duplicate errors. This should be rare.
----------------
ChuanqiXu9 wrote:
```suggestion
// When Sema is available, avoid duplicate errors.
```
https://github.com/llvm/llvm-project/pull/79875
More information about the cfe-commits
mailing list