]> granicus.if.org Git - llvm/commit
Merging r310543:
authorTom Stellard <tstellar@redhat.com>
Tue, 14 Nov 2017 19:47:47 +0000 (19:47 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 14 Nov 2017 19:47:47 +0000 (19:47 +0000)
commit700eb26beec1dae31db2c86da4f114112c6e50a3
tree66fab780f12c0cb01e26c93202e425b9e5429d6a
parent690ade4c465df23d0293dd1b2ebd70debc3554aa
Merging r310543:

------------------------------------------------------------------------
r310543 | pcc | 2017-08-09 18:07:44 -0700 (Wed, 09 Aug 2017) | 9 lines

Linker: Create a function declaration when moving a non-prevailing alias of function type.

We were previously creating a global variable of function type,
which is invalid IR. This issue was exposed by r304690, in which we
started asserting that global variables were of a valid type.

Fixes PR33462.

Differential Revision: https://reviews.llvm.org/D36438
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@318181 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/IRMover.cpp
test/LTO/Resolution/X86/function-alias-non-prevailing.ll [new file with mode: 0644]