[llvm-bugs] [Bug 41065] In some circumstances the clang_cl for windows doesn't generate default virtual destructor for the derived class with "/O2" and "/EHsc" flags

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 18 15:46:35 PDT 2019


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
 Fixed By Commit(s)|                            |r356425
         Resolution|---                         |FIXED

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
r356425 should fix this. Instead of doing as suggested and emitting the
destructor, the fix was to not reference it, because derived2_class is
abstract, and the call to destroy derived_class was actually dead. We don't
have to construct it or destroy virtual bases of abstract classes. r356425
implements that optimization.

-- 
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/20190318/d4757f4d/attachment.html>


More information about the llvm-bugs mailing list