Eliminate two bits of ugliness in MDNode::replaceElement:
authorChris Lattner <sabre@nondot.org>
Mon, 28 Dec 2009 09:24:53 +0000 (09:24 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Dec 2009 09:24:53 +0000 (09:24 +0000)
commit496425774e8adbc526e298f91f4c6980177c1d7f
tree4caa69dec7a6854bfccb11d17774b3a67a798095
parentf2410180d07cb1ca074ad2a9b8538bc64895e68b
Eliminate two bits of ugliness in MDNode::replaceElement:
eliminate the temporary smallvector, and only do FindNodeOrInsertPos
twice if the first one succeeds and we delete a node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92220 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Metadata.cpp