[PR30341] Alias must point to a definition
authorAditya Kumar <hiraditya@msn.com>
Thu, 29 Sep 2016 03:32:04 +0000 (03:32 +0000)
committerAditya Kumar <hiraditya@msn.com>
Thu, 29 Sep 2016 03:32:04 +0000 (03:32 +0000)
commit13a18fecdd12fc70175d7d3e3a7678b7af9f6bc1
tree21439be7c6c7811429b3f0d285e12f988c9f74a0
parentf75609e015cdb9eb1014b4d2e9cf9fd942bb7b20
[PR30341] Alias must point to a definition

Inlining the destructor caused the compiler to generate bad IR which failed the Verifier in the backend.
https://llvm.org/bugs/show_bug.cgi?id=30341

This patch disables alias to available_externally definitions.

Reviewers: eugenis, rsmith

Differential Revision: https://reviews.llvm.org/D24682

llvm-svn: 282679
clang/lib/CodeGen/CGCXX.cpp
clang/test/CodeGenCXX/alias-available-externally.cpp [new file with mode: 0644]