Handle empty Subprogram list when linking metadata.
authorTeresa Johnson <tejohnson@google.com>
Tue, 22 Dec 2015 01:17:19 +0000 (01:17 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 22 Dec 2015 01:17:19 +0000 (01:17 +0000)
commit311da8d9a95d26a029129da182c4eb6a83b6a5f6
tree853ddf5ae7be00cf65b9b47bb40a25f03b099d67
parent6db6cfa92b7232615fc76d201a309c84378ea1a1
Handle empty Subprogram list when linking metadata.

Use an iterator that handles an empty subprogram list.

Fixes PR25915.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/IRMover.cpp
test/tools/gold/X86/pr25915.ll [new file with mode: 0644]