Skip to content

Commit a004b07

Browse files
Remove expected copy constructor call to align with recent optimizations in CIR code generation for trivial copy constructs.
- The cir.copy will be optimized out because the class C is trivial aggr type
1 parent b581ea8 commit a004b07

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/test/CIR/CodeGen/try-catch-dtors.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ void d() {
355355
// CIR: %[[V1:.*]] = cir.alloca !rec_C, !cir.ptr<!rec_C>, ["b"] {alignment = 1 : i64}
356356
// CIR: cir.scope {
357357
// CIR: %[[V2:.*]] = cir.alloca !rec_C, !cir.ptr<!rec_C>, ["agg.tmp0"] {alignment = 1 : i64}
358-
// CIR: cir.call @_ZN1CC2ERKS_(%[[V2]], %[[V1]]) : (!cir.ptr<!rec_C>, !cir.ptr<!rec_C>) -> () extra(#fn_attr)
359358
// CIR: %[[V3:.*]] = cir.load{{.*}} %[[V2]] : !cir.ptr<!rec_C>, !rec_C
360359
// CIR: cir.try synthetic cleanup {
361360
// CIR: cir.call exception @_ZN1CaSES_(%[[V0]], %[[V3]]) : (!cir.ptr<!rec_C>, !rec_C) -> () cleanup {

0 commit comments

Comments
 (0)