[all-commits] [llvm/llvm-project] b4fb9a: [clang] Fix of a crash 'Cannot get layout of forwa...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Fri Aug 29 00:46:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b4fb9aa0f7edb009e1bb44240e75a9141a064b8c
https://github.com/llvm/llvm-project/commit/b4fb9aa0f7edb009e1bb44240e75a9141a064b8c
Author: Balázs Kéri <balazs.keri at ericsson.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
A clang/test/Analysis/ctu-import-type-decl-definition.c
Log Message:
-----------
[clang] Fix of a crash 'Cannot get layout of forward declarations' during CTU static analysis (#155375)
When a type is imported with `ASTImporter`, the "original declaration"
of the type is imported. In some cases this is not the definition (of
the class). Before the fix the definition was only imported if there was
an other reference to it in the AST to import. This is not always the
case (like in the added test case), if not the definition was missing in
the "To" AST which can cause the assertion later.
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