[clang] [HLSL] Implement the 'and' HLSL function (PR #127098)

Deric Cheung via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 17:44:25 PST 2025


================
@@ -2079,6 +2079,14 @@ static bool CheckFloatingOrIntRepresentation(Sema *S, CallExpr *TheCall) {
                                     checkAllSignedTypes);
 }
 
+static bool CheckBoolRepresentation(Sema *S, CallExpr *TheCall) {
+  auto checkAllBoolTypes = [](clang::QualType PassedType) -> bool {
+    return !PassedType->hasIntegerRepresentation();
----------------
Icohedron wrote:

`clang::QualType` does not have a `hasBooleanRepresentation();` function. 
I assume `hasIntegerRepresentation()` should work just fine.

https://github.com/llvm/llvm-project/pull/127098


More information about the cfe-commits mailing list