Skip to content

Commit 7b47a29

Browse files
committed
address comments
1 parent be7d47f commit 7b47a29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ Bug Fixes in This Version
694694
- Constant evaluation now correctly runs the destructor of a variable declared in
695695
the second clause of a C-style ``for`` loop. (#GH139818)
696696
- Fixed a bug with constexpr evaluation for structs containing unions in case of C++ modules. (#GH143168)
697-
- Fixed an infinite recursion about defaulted constexpr dtor. (#GH141789)
697+
- Fixed an infinite recursion when checking constexpr destructors. (#GH141789)
698698

699699
Bug Fixes to Compiler Builtins
700700
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7174,7 +7174,7 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) {
71747174
if (isa<CXXDestructorDecl>(M)) {
71757175
llvm::SmallDenseSet<QualType> Visited;
71767176
auto Check = [&Visited](QualType T, auto &&Check) -> bool {
7177-
if (!Visited.insert(T.getCanonicalType().getUnqualifiedType()).second)
7177+
if (!Visited.insert(T->getCanonicalTypeUnqualified()).second)
71787178
return false;
71797179
const CXXRecordDecl *RD =
71807180
T->getBaseElementTypeUnsafe()->getAsCXXRecordDecl();

0 commit comments

Comments
 (0)