Skip to content

Commit 244c59c

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/clang/lib/Sema/SemaHLSL.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12166,6 +12166,11 @@ static bool AllowObjectInContext(QualType Ty, TypeDiagContext DiagContext) {
1216612166
return true;
1216712167
}
1216812168

12169+
// Determine if `Ty` is valid and/or empty. If invalid returns false and Sema `S`, location `Loc`,
12170+
// error index `DiagContext`, and FieldDecl `FD` are used to emit diagnostics.
12171+
// If `CheckLongVec` is set, errors are produced if `Ty` is a long vector.
12172+
// If the type is not empty, `Empty` is set to false.
12173+
// `CheckedDecls` is used to prevent redundant recursive type checks.
1216912174
static bool
1217012175
DiagnoseElementTypes(Sema &S, SourceLocation Loc, QualType Ty, bool &Empty,
1217112176
bool CheckLongVec, TypeDiagContext DiagContext,

0 commit comments

Comments
 (0)