]> granicus.if.org Git - llvm/commit
Linker: Remove unnecessary call to copyMetadata in IRLinker::linkGlobalVariable.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 14 Nov 2016 23:18:38 +0000 (23:18 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 14 Nov 2016 23:18:38 +0000 (23:18 +0000)
commitae03f03be4aa998693c6e8d6e39e093773bb59eb
tree829a3738531d986558fc863ba410c540c124210d
parentfe876c7e504699bdcb845e74be6bda957f0bb478
Linker: Remove unnecessary call to copyMetadata in IRLinker::linkGlobalVariable.

This was causing us to create duplicate metadata on global variables.
Debug info test case by Adrian Prantl, additional test cases by me.

Fixes PR31012.

Differential Revision: https://reviews.llvm.org/D26622

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/IRMover.cpp
test/Linker/Inputs/metadata-attach.ll [new file with mode: 0644]
test/Linker/debug-info-global-var.ll [new file with mode: 0644]
test/Linker/metadata-attach.ll