[llvm-bugs] [Bug 13559] clang fails to apply constructor alias optimization

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 21 07:10:48 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=13559

Rafael Ávila de Espíndola <rafael.espindola at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Rafael Ávila de Espíndola <rafael.espindola at gmail.com> ---
(In reply to comment #1)
> (In reply to comment #0)
> > On this testcase:
> > 
> >   struct X {
> >     X(int j) : i(j) {}
> >     int i;
> >   };
> >   
> >   int main() {
> >     X x(10);
> >   }
> > 
> > $ clang b6940259.cc -flto -S -o - -O3 -mllvm -disable-llvm-optzns
> > 
> > emits a @_ZN1XC1Ei that calls @_ZN1XC2Ei. It should just be an alias.
> 
> FWIW we currently don't produce C1 at all in this example at the moment, if
> I'm testing this correctly.

I see the same. Closing the bug as fixed. Please reopen if you have a testcase
that still fails.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160421/3a2c5607/attachment.html>


More information about the llvm-bugs mailing list