================
@@ -8001,6 +8001,12 @@ NamedDecl *Sema::ActOnVariableDeclarator(
     }
   }
 
+  if (getLangOpts().HLSL) {
+    if (R->isHLSLSpecificType() && !NewVD->isImplicit()) {
+      Diag(D.getBeginLoc(), diag::err_hlsl_intangible_type_cannot_be_declared);
----------------
hekota wrote:

Got it, I thought `isImplicit()` also means declarations from implicit headers.

If we want to use these in `hlsl.h` then I don't think they can be truly 
sizeless. Sizeless types does not seem to be allowed in struct fields.

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

Reply via email to