Skip to content

Commit 004dc1d

Browse files
committed
Default case: accept as non-Empty and add comment that only recursive
types need to be checked
1 parent c07e548 commit 004dc1d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/clang/lib/Sema/SemaHLSL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12235,6 +12235,8 @@ DiagnoseElementTypes(Sema &S, SourceLocation Loc, QualType Ty, bool &Empty,
1223512235
return ErrorFound;
1223612236
}
1223712237
default:
12238+
// Not a recursive type, no element types to check here
12239+
Empty = false;
1223812240
return false;
1223912241
}
1224012242
}

0 commit comments

Comments
 (0)