]> granicus.if.org Git - clang/commit
Fix the -cxx-abi microsoft -mconstructor-aliases combination.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Nov 2013 19:18:55 +0000 (19:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Nov 2013 19:18:55 +0000 (19:18 +0000)
commite6d509f2e09698df4e334b77596ca40e4899b2e4
treec408c7225b25eb0c76a865d4f565b7c73cb99119
parent9a2f84b2f03e79fb21f9db9e029045fba09dedef
Fix the -cxx-abi microsoft -mconstructor-aliases combination.

On the microsoft ABI clang is producing one weak_odr and one linkonce_odr
destructor, which is reasonable since only one is required.

The fix is simply to move the assert past the special case treatment of
linkonce_odr.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
test/CodeGenCXX/microsoft-abi-structors-alias.cpp [new file with mode: 0644]