IR: Don't drop MDNode uniquing on null operands
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 5 Jan 2015 23:31:54 +0000 (23:31 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 5 Jan 2015 23:31:54 +0000 (23:31 +0000)
commit97d1c07c1582067b502347d6e5a2fb4d508d299a
tree691c15817cdc182cff0d6d7a35f6fb2fdf635cab
parent2f7982026dbe6b5857128a1c7b5489e6e42c78e3
IR: Don't drop MDNode uniquing on null operands

Now that `LLVMContextImpl` can call `MDNode::dropAllReferences()` to
prevent teardown madness, stop dropping uniquing just because an operand
drops to null.

Part of PR21532.

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