[clang] [Clang] Make matrix type trivially copyable (PR #193634)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 18:57:13 PDT 2026
================
@@ -2902,6 +2867,10 @@ static bool isTriviallyCopyableTypeImpl(const QualType &type,
return isTriviallyCopyableTypeImpl(Context.getBaseElementType(type),
Context, IsCopyConstructible);
+ if (type->isMatrixType())
+ return isTriviallyCopyableTypeImpl(Context.getMatrixBaseElementType(type),
+ Context, IsCopyConstructible);
----------------
farzonl wrote:
Actually now that i think about it a bit vector just returns true, why can’t matrix do the same thing?
https://github.com/llvm/llvm-project/pull/193634
More information about the cfe-commits
mailing list