[clang] [llvm] Implement resource binding type prefix mismatch errors (PR #87578)

Xiang Li via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 16:04:03 PDT 2024


================
@@ -44,7 +44,7 @@ void foo2() {
   // expected-warning at +1 {{'register' attribute only applies to cbuffer/tbuffer and external global variables}}
   extern RWBuffer<float> U2 : register(u5);
 }
-// FIXME: expect-error once fix https://github.com/llvm/llvm-project/issues/57886.
+// expected-error at +1 {{invalid register name prefix 'u' for 'float' (expected 't')}}
----------------
python3kgae wrote:

dxc will report
error: invalid register specification, expected 'b', 'c', or 'i' binding
float t : register(u0);
          ^
fxc will just ignore the register(u0).

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


More information about the cfe-commits mailing list