[clang] [HLSL] Make casting functions constexpr (PR #108902)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 17 07:33:54 PDT 2024


================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify
+
+// expected-no-diagnostics
+
+// Because asuint should be constant evaluated, all the static asserts below
----------------
joaosaffran wrote:

It looks like an update is missing here:

```suggestion
// Because asfloat should be constant evaluated, all the static asserts below
```

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


More information about the cfe-commits mailing list