Handle and warn on aliases to weak aliases.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 15:27:20 +0000 (15:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Mar 2014 15:27:20 +0000 (15:27 +0000)
commita39fc6dd2afab9cb14286e00f2f6ef2370002c40
treef69a30a34f74928d8628a0163d866a38de7a320e
parent24a669d225f9cacf1cd3846e333f9690a06d1e1c
Handle and warn on aliases to weak aliases.

This produces valid IR now that llvm rejects aliases to weak aliases and warns
the user that the resolution is not changed if the weak alias is overridden.

llvm-svn: 204935
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/alias.c
clang/test/Sema/attr-alias-elf.c