Skip to content

Commit 010785c

Browse files
committed
remove comparison of diff types
1 parent 65b3141 commit 010785c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,7 @@ bool SemaHLSL::IsTypedResourceElementCompatible(clang::QualType QT) {
21882188
return false;
21892189

21902190
if (const BuiltinType *BT = TempQT->getAs<BuiltinType>()) {
2191-
if (BT->getKind() == BuiltinType::Bool ||
2192-
BT->getKind() == BuiltinType::Enum)
2191+
if (BT->isBooleanType() || BT->isEnumeralType())
21932192
return false;
21942193

21952194
// Check if it is an array type.

0 commit comments

Comments
 (0)