Alias must point to a definition
authorAditya Kumar <hiraditya@msn.com>
Sun, 2 Oct 2016 03:06:36 +0000 (03:06 +0000)
committerAditya Kumar <hiraditya@msn.com>
Sun, 2 Oct 2016 03:06:36 +0000 (03:06 +0000)
commite84372b039e1d965fe27d978e38f27c585dd3185
tree0d3fb00474f852d7c27aac8501bff84e1373e51a
parentf230b0aa43f9af0da9f5970dac2f41bc7e6e254b
Alias must point to a definition

Reapplying the patch after modifying the test case.

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: 283063
clang/lib/CodeGen/CGCXX.cpp
clang/test/CodeGenCXX/alias-available-externally.cpp [new file with mode: 0644]