[clang] Adding `asuint` implementation to hlsl (PR #107292)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 11:13:45 PDT 2024
================
@@ -1427,6 +1447,14 @@ bool CheckAllArgsHaveFloatRepresentation(Sema *S, CallExpr *TheCall) {
checkAllFloatTypes);
}
+bool CheckArgIsFloatOrIntWithoutImplicits(Sema *S, Expr *Arg) {
+ auto checkFloat = [](clang::QualType PassedType) -> bool {
+ return !PassedType->isFloat32Type() && !PassedType->isIntegerType();
----------------
farzonl wrote:
```suggestion
return !(PassedType->isFloat32Type() || PassedType->isIntegerType());
```
https://github.com/llvm/llvm-project/pull/107292
More information about the cfe-commits
mailing list