summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-22 19:26:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-22 19:26:13 +0000
commitd205498c83c1bba1004ae41299ad7138881b9480 (patch)
treee9603b20ec709764a4110a927b0fabe27a55183c /lib/CodeGen/CGExpr.cpp
parentbb6144beedc7cbf8df9822024c20c3a8172682c1 (diff)
downloadclang-d205498c83c1bba1004ae41299ad7138881b9480.tar.gz
clang-d205498c83c1bba1004ae41299ad7138881b9480.tar.bz2
clang-d205498c83c1bba1004ae41299ad7138881b9480.tar.xz
New fix for pr17535.
This is a fixed version of r193161. In order to handle void foo() __attribute__((alias("bar"))); void bar() {} void zed() __attribute__((alias("foo"))); it is not enough to delay aliases to the end of the TU, we have to do two passes over them to find if they are defined or not. This can be implemented by producing alias as we go and just doing the second pass at the end. This has the advantage that other parts of clang that were expecting alias to be processed in order don't have to be changed. This patch also handles cyclic aliases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions