Skip to content

Commit c4aa65c

Browse files
committed
add comment
1 parent 78ad723 commit c4aa65c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5067,8 +5067,10 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
50675067
// cv-qualifiers on return types are pointless except when the type is a
50685068
// class type in C++.
50695069
if ((T.getCVRQualifiers() || T->isAtomicType()) &&
5070+
// A dependent type or an undeduced type might later become a class
5071+
// type.
50705072
!(S.getLangOpts().CPlusPlus &&
5071-
(T->isDependentType() || T->isRecordType() ||
5073+
(T->isRecordType() || T->isDependentType() ||
50725074
T->isUndeducedAutoType()))) {
50735075
if (T->isVoidType() && !S.getLangOpts().CPlusPlus &&
50745076
D.getFunctionDefinitionKind() ==

0 commit comments

Comments
 (0)