]> granicus.if.org Git - clang/commit
CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Dec 2013 16:12:52 +0000 (16:12 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Dec 2013 16:12:52 +0000 (16:12 +0000)
commita64e88b2d81e4fa41b70477088dbc1ad5797f53a
tree6d60ccb58a4a3757392f95def3584a6d323e7a68
parentd45fce1c6346b29c4928a859fdac3d30e96f097a
CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg.

This can happen when we're trying to emit a thunk with available_externally
linkage with optimization enabled but bail because it doesn't make sense
for vararg functions.

PR18098.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGVTables.cpp
test/CodeGenCXX/thunks.cpp