================
@@ -42,6 +42,7 @@ static const unsigned DirectXAddrSpaceMap[] = {
     0, // ptr32_uptr
     0, // ptr64
     3, // hlsl_groupshared
+    2, // hlsl_constant
----------------
tex3d wrote:

I'm surprised we neither use the `LangASMap` type for this array, nor 
static_assert that the size is the same, to prevent these from getting 
out-of-sync.  Does the assignment of this array pointer to `LangASMap *` cause 
a compilation failure which can be used to enforce map updates when address 
spaces are added?

https://github.com/llvm/llvm-project/pull/123411
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to