Skip to content

Commit fea88fb

Browse files
simollGreg Roth
andauthored
Update tools/clang/lib/Sema/SemaHLSL.cpp
Co-authored-by: Greg Roth <[email protected]>
1 parent e7f8c5a commit fea88fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12224,7 +12224,7 @@ DiagnoseElementTypes(Sema &S, SourceLocation Loc, QualType Ty, bool &Empty,
1222412224
case AR_TOBJ_COMPOUND: {
1222512225
bool ErrorFound = false;
1222612226
const RecordDecl *RD = Ty->getAs<RecordType>()->getDecl();
12227-
// Never recurse infinitely into related subtypes
12227+
// Never recurse redundantly into related subtypes that have already been checked.
1222812228
if (!CheckedDecls.insert(RD).second)
1222912229
return false;
1223012230

0 commit comments

Comments
 (0)