[all-commits] [llvm/llvm-project] 0a675f: [clang] fix uniquing of some TagTypes created from...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Mon Aug 25 20:26:25 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a675f553caf7e4babcdcbfa5a5e36f4233c1ad4
https://github.com/llvm/llvm-project/commit/0a675f553caf7e4babcdcbfa5a5e36f4233c1ad4
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2025-08-26 (Tue, 26 Aug 2025)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/test/AST/ast-dump-decl.cpp
Log Message:
-----------
[clang] fix uniquing of some TagTypes created from the injected class name (#155347)
This fixes a bug in the fast path for the creation of TagTypes from
injected class names.
The creation of TagTypes has a fast path which, when there is no
elaboration, uses storage in the declaration itself for memoizing the
resuling type node, instead of using the folding set.
This memoizing would fail when the type was created from the injected
class name, as we would look for the node in the injected declaration
but store it in the non-injected one, so a different type would be
created each time.
This regression was reported here:
https://github.com/llvm/llvm-project/pull/147835#discussion_r2299248995
Since this regression was never released, there are no release notes.
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