[ThinLTO] Check MDNode values saved for metadata linking (NFC)
authorTeresa Johnson <tejohnson@google.com>
Wed, 30 Dec 2015 19:13:57 +0000 (19:13 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 30 Dec 2015 19:13:57 +0000 (19:13 +0000)
commit6e198168f880a21713c16701943a2f4b31e47be4
tree829f9b13dce0ed70a60fc9c912bb12886dbda33c
parent8a487cdf19f846e91cfb3f85707728a4cb89c155
[ThinLTO] Check MDNode values saved for metadata linking (NFC)

Add an assert suggested in review for r255909 to ensure that MDNodes
saved in the map used for metadata linking are either temporary or
resolved.

Also add a comment clarifying why we may need to save off non-MDNode
metadata.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256646 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp