Use the range variant of find/find_if instead of unpacking begin/end

If the result of the find is only used to compare against end(), just
use is_contained instead.

No functionality change is intended.

llvm-svn: 278469
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index cbbd808..5e41b9f 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -878,7 +878,7 @@
 
   SmallVector<Metadata *, 4> MDs;
   for (Metadata *MD : A->operands())
-    if (std::find(B->op_begin(), B->op_end(), MD) != B->op_end())
+    if (is_contained(B->operands(), MD))
       MDs.push_back(MD);
 
   // FIXME: This preserves long-standing behaviour, but is it really the right
@@ -892,7 +892,7 @@
 
   SmallVector<Metadata *, 4> MDs(B->op_begin(), B->op_end());
   for (Metadata *MD : A->operands())
-    if (std::find(B->op_begin(), B->op_end(), MD) == B->op_end())
+    if (!is_contained(B->operands(), MD))
       MDs.push_back(MD);
 
   // FIXME: This preserves long-standing behaviour, but is it really the right