================
@@ -329,6 +329,10 @@ llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type 
*Ty) {
   if (CodeGenOpts.NewStructPathTBAA && Ty->isArrayType())
     return getTypeInfo(cast<ArrayType>(Ty)->getElementType());
 
+  // Accesses to matrix types are accesses to objects of their element types.
+  if (const auto *MTy = dyn_cast<ConstantMatrixType>(Ty))
+    return getTypeInfo(MTy->getElementType());
----------------
fhahn wrote:

Only `ConstantMatrixType` should reach codegen. I updated the code to use 
`dyn_cast<MatrixType>` and asserted that it always is `ConstantMatrixType`, 
thanks

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

Reply via email to