================
@@ -17,6 +17,38 @@ struct HasNonTrivialArray {
NonTrivial arr[3];
};
+// CIR-LABEL: cir.func{{.*}}make_copy(
+// CIR: cir.call @_ZN18HasNonTrivialArrayC1ERKS_(
+// CIR-LABEL: cir.func {{.*}}@_ZN18HasNonTrivialArrayC1ERKS_(
+// CIR: cir.call @_ZN18HasNonTrivialArrayC2ERKS_(
+
+// LLVM-LABEL: define dso_local void @make_copy(ptr dead_on_unwind noalias
writable sret(%struct.HasNonTrivialArray) align 4 %{{[^,)]+}}, ptr noundef
nonnull align 4 dereferenceable(12) %{{[^,)]+}})
----------------
andykaylor wrote:
```suggestion
// LLVM-LABEL: define dso_local void @make_copy(ptr{{.*}}
sret(%struct.HasNonTrivialArray) align 4 %{{[^,)]+}}, ptr{{.*}} align 4
{{.*}}%{{[^,)]+}})
```
Matching the OGCG check and eliminating explicit checks for things that aren't
important to this test.
https://github.com/llvm/llvm-project/pull/207260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits