================ @@ -2651,6 +2651,8 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const { return false; } else if (!BaseElementType->isObjectType()) { return false; + } else if (BaseElementType.isTriviallyCopyableType(Context)) { + return true; ---------------- cor3ntin wrote:
Shouldn't this be after the canPassInRegisters test? at the very least it would be more efficient https://github.com/llvm/llvm-project/pull/77092 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits