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)
commit3d510665e98e12838abf8b949c96191bbe2b3935
tree2f51813258ff557df11ba8891ccf8e61f14e928a
parentb786572d7c039e75bd6c285dfec4b3ac0056e1fc
AsmWriter: Handle broken metadata nodes

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

llvm-svn: 232417
llvm/lib/IR/AsmWriter.cpp
llvm/unittests/IR/MetadataTest.cpp