Skip to content

Commit 2beddab

Browse files
committed
address comments
1 parent 08e9ffa commit 2beddab

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
@@ -703,7 +703,7 @@ Bug Fixes in This Version
703703
the second clause of a C-style ``for`` loop. (#GH139818)
704704
- Fixed a bug with constexpr evaluation for structs containing unions in case of C++ modules. (#GH143168)
705705
- Fixed incorrect token location when emitting diagnostics for tokens expanded from macros. (#GH143216)
706-
- Fixed an infinite recursion about defaulted constexpr dtor. (#GH141789)
706+
- Fixed an infinite recursion when checking constexpr destructors. (#GH141789)
707707

708708
Bug Fixes to Compiler Builtins
709709
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7161,7 +7161,7 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) {
71617161
if (isa<CXXDestructorDecl>(M)) {
71627162
llvm::SmallDenseSet<QualType> Visited;
71637163
auto Check = [&Visited](QualType T, auto &&Check) -> bool {
7164-
if (!Visited.insert(T.getCanonicalType().getUnqualifiedType()).second)
7164+
if (!Visited.insert(T->getCanonicalTypeUnqualified()).second)
71657165
return false;
71667166
const CXXRecordDecl *RD =
71677167
T->getBaseElementTypeUnsafe()->getAsCXXRecordDecl();

0 commit comments

Comments
 (0)