================
@@ -1154,3 +1156,70 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned
BuiltinID, CallExpr *TheCall) {
}
return false;
}
+
+static bool calculateIsIntangibleType(QualType Ty) {
+ Ty = Ty->getCanonicalTypeUnqualified();
+ if (Ty->isBuiltinType())
+ return Ty->isHLSLSpecificType();
----------------
bogner wrote:
I don't think we want to call `isHLSLSpecificType()` here - what if we add HLSL
specific types that aren't intangible? I think a new `isHLSLIntangibleType()`
would be more appropriate here (`isHLSLSpecificType()` can be updated to just
`return isHLSLIntangibleType()`).
https://github.com/llvm/llvm-project/pull/104544
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits