[clang] [HLSL] Implement the 'and' HLSL function (PR #127098)
Deric Cheung via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 14 19:12:44 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:
I just avoided using the `CheckAllArgTypesAreCorrect` helper function and that seems to work.
https://github.com/llvm/llvm-project/pull/127098
More information about the cfe-commits
mailing list