[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 8 18:49:35 PDT 2025
================
@@ -6781,7 +6781,7 @@ static bool HandleConstructorCall(const Expr *E, const LValue &This,
// and make sure we've initialized every step along it.
auto IndirectFieldChain = IFD->chain();
for (auto *C : IndirectFieldChain) {
- FD = cast<FieldDecl>(C);
+ FD = cast<FieldDecl>(C)->getCanonicalDecl();
----------------
ChuanqiXu9 wrote:
I'm slightly tired to see a lot of random "getCanonicalDecl()" in the code... but it is not your fault. Let it go.
https://github.com/llvm/llvm-project/pull/143168
More information about the cfe-commits
mailing list