We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6301d6 commit 7eca1caCopy full SHA for 7eca1ca
1 file changed
tools/clang/lib/AST/HlslTypes.cpp
@@ -692,8 +692,8 @@ bool GetHLSLSubobjectKind(clang::QualType type,
692
}
693
694
HLSLSubObjectAttr *Attr = RD->getAttr<HLSLSubObjectAttr>();
695
- subobjectKind = (DXIL::SubobjectKind)Attr->getSubObjKindUint();
696
- hgType = (DXIL::HitGroupType)Attr->getHitGroupType();
+ subobjectKind = static_cast<DXIL::SubobjectKind>(Attr->getSubObjKindUint());
+ hgType = static_cast<DXIL::HitGroupType>(Attr->getHitGroupType());
697
if (subobjectKind == DXIL::SubobjectKind::HitGroup)
698
DXASSERT(DXIL::IsValidHitGroupType(hgType), "invalid hit group type");
699
0 commit comments