[clang] [CIR] Implement isMemcpyEquivalentSpecialMember for trivial copy/move ctors (PR #186700)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 06:44:57 PDT 2026
================
@@ -43,7 +43,6 @@ struct HasDtor {
// CHECK-NEXT: acc.yield
// CHECK-NEXT: } copy {
// CHECK-NEXT: ^bb0(%[[ARG_FROM:.*]]: !cir.ptr<!rec_NoCopyConstruct> {{.*}}, %[[ARG_TO:.*]]: !cir.ptr<!rec_NoCopyConstruct> {{.*}}):
-// CHECK-NEXT: cir.copy %[[ARG_FROM]] to %[[ARG_TO]] : !cir.ptr<!rec_NoCopyConstruct>
----------------
erichkeane wrote:
Yeah... can we just put an 'int' into the types above on these 3 files? It should maintain the 'copy' at that point, right? Is that something you could do here (and perhaps reduce the size of this?).
IF it ends up being too much work, let me know and I'll come through and add something that can land first.
https://github.com/llvm/llvm-project/pull/186700
More information about the cfe-commits
mailing list