[clang] [RFC][C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #104512)
Dmitry Polukhin via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 08:16:03 PDT 2024
Valentin Clement =?utf-8?b?KOODkOODrOODsw==?=,Kyungwoo Lee <kyulee at meta.com>,Dmitry
Polukhin <dmitry.polukhin at gmail.com>,Dmitry Polukhin
<dmitry.polukhin at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/104512 at github.com>
================
@@ -1188,6 +1188,11 @@ class ASTReader
/// once recursing loading has been completed.
llvm::SmallVector<NamedDecl *, 16> PendingOdrMergeChecks;
+ /// Lambdas that need to be loaded right after the function they belong to.
+ /// It is required to have the right canonical declaration for lambda class
+ /// from the same module as the function.
----------------
dmpolukhin wrote:
Done
https://github.com/llvm/llvm-project/pull/104512
More information about the cfe-commits
mailing list