[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-16 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn updated https://github.com/llvm/llvm-project/pull/143739 >From d239fee7d5fd002edb08a24b4de1db84433413fe Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Wed, 11 Jun 2025 17:36:29 +0200 Subject: [PATCH] [Modules] Record whether VarDecl initializers contain side

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-12 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > I think we shouldn't remove the assertion. Your test passes with the > > removal of the assertion since the initializers are not complex. So it ends > > quickly. But if it is a complex initialization which triggers more > > deserialization, I feel it will be problematic.

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-12 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: > I think we shouldn't remove the assertion. Your test passes with the removal > of the assertion since the initializers are not complex. So it ends quickly. > But if it is a complex initialization which triggers more deserialization, I > feel it will be problematic. > > I thi

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-11 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I think we shouldn't remove the assertion. Your test passes with the removal of the assertion since the initializers are not complex. So it ends quickly. But if it is a complex initialization which triggers more deserialization, I feel it will be problematic. I think the poi

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Henrik G. Olsson (hnrklssn) Changes This assert was reportedly added to "Defensively ensure that GetExternalDeclStmt protects itself from nested deserialization". In the tests for https://github.com/swiftlang/swift/pull/81859 I wa

[clang] [ASTReader] Remove assert in GetExternalDeclStmt (PR #143739)

2025-06-11 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn created https://github.com/llvm/llvm-project/pull/143739 This assert was reportedly added to "Defensively ensure that GetExternalDeclStmt protects itself from nested deserialization". In the tests for https://github.com/swiftlang/swift/pull/81859 I was able to trigg