Perhaps you can check more explicitly that the destructor is called inside the loop?
// CHECK: [[regex for LOOP_BODY]]: // CHECK: call void @_ZN3fooC1Ev // CHECK-NOT: br // CHECK: call void @_ZN3barC1E3foo // CHECK-NOT: br // CHECK: call void @_ZN3fooD1Ev // CHECK: br [[LOOP_BODY]] > On Jan 8, 2017, at 11:34 PM, Arthur Eubanks via cfe-commits > <cfe-commits@lists.llvm.org> wrote: > > Hi, > > This is my first commit, please feel free to critique any of the code/new > test since I'm not quite sure if this is in the correct format. > The patch is for the bug https://llvm.org/bugs/show_bug.cgi?id=22877 > <https://llvm.org/bugs/show_bug.cgi?id=22877> regarding cleaning up default > arguments in constructors while initializing an array. > It doesn't break any old tests. > > Thanks, > Arthur Eubanks > > <patch.diff> > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits