================
@@ -1897,26 +1897,29 @@ void InitListChecker::CheckMatrixType(const 
InitializedEntity &Entity,
     return;
 
   const ConstantMatrixType *MT = DeclType->castAs<ConstantMatrixType>();
+
+  // For HLSL The error for this case is handled in SemaHLSL's initializer
+  // list diagnostics, That means the execution should require
+  // getNumElementsFlattened to equal getNumInits. In other words execution
+  // should never reach this point if this condition is not true".
----------------
hekota wrote:

```suggestion
  // For HLSL, the error reporting for this case is handled in SemaHLSL's 
initializer
  // list diagnostics. That means the execution should require
  // getNumElementsFlattened to equal getNumInits. In other words the execution
  // should never reach this point if this condition is not true".
```

https://github.com/llvm/llvm-project/pull/166277
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to