]> granicus.if.org Git - clang/commit
If a linkonce_odr dtor/ctor is identical to another one, just rauw.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Nov 2013 22:59:46 +0000 (22:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Nov 2013 22:59:46 +0000 (22:59 +0000)
commit0171c6b348815df326a063c7e78eb81b7347fa25
tree180c00813b2cf0212fe036238628dd9e1c893821
parentfbb091aa6319a52ae6790ed776ffd03ed2d107b5
If a linkonce_odr dtor/ctor is identical to another one, just rauw.

Unlike an alias a rauw is always safe, so we don't need to avoid this
optimization when the replacement is not know to be available in every TU.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194288 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
test/CodeGenCXX/ctor-dtor-alias.cpp
test/CodeGenCXX/destructors.cpp