[all-commits] [llvm/llvm-project] 430b25: [Clang] Do not attempt to access the `DefinitionDa...
Oleksandr T. via All-commits
all-commits at lists.llvm.org
Tue Jul 23 01:40:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 430b2545032db9de7898444502915f89e20f7c4c
https://github.com/llvm/llvm-project/commit/430b2545032db9de7898444502915f89e20f7c4c
Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
Date: 2024-07-23 (Tue, 23 Jul 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/DeclCXX.cpp
M clang/test/CXX/temp/temp.arg/temp.arg.template/p3-0x.cpp
Log Message:
-----------
[Clang] Do not attempt to access the `DefinitionData` of an incomplete type (#99998)
We were asserting here because we were trying to access the
`DefinitionData` of an incomplete type in the `Visit` lambda in
`CXXRecordDecl::hasSubobjectAtOffsetZeroOfEmptyBaseType`.
The code that creates `FieldDecl`s always marks them as invalid
if their type is incomplete, so checking whether the field decl
whose type we’re about to look at is invalid fixes this issue.
Fixes #99868.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list