AsmWriter: Handle broken metadata nodes
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Mar 2015 21:21:10 +0000 (21:21 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Mar 2015 21:21:10 +0000 (21:21 +0000)
commitbee74a3ad49392686025eb267e19d30ca78aec30
tree44de4cadbec341fc0b5675d7b8bb95732dd1a00b
parent763e18696fde9d9016f685713fec70f612817a9c
AsmWriter: Handle broken metadata nodes

Print out temporary `MDNode`s so we don't crash in the verifier (or
during `dump()` output).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AsmWriter.cpp
unittests/IR/MetadataTest.cpp