[all-commits] [llvm/llvm-project] 4b49e4: [clang] fix uniquing of some TagTypes created from...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Mon Aug 25 19:54:28 PDT 2025
Branch: refs/heads/users/mizvekov/GH147835-regression-4
Home: https://github.com/llvm/llvm-project
Commit: 4b49e49f671f16feb61970aa1510dc78b961f936
https://github.com/llvm/llvm-project/commit/4b49e49f671f16feb61970aa1510dc78b961f936
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2025-08-25 (Mon, 25 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
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