Author: Kazu Hirata
Date: 2020-12-26T12:06:24-08:00
New Revision: 9c9bca45f094cf6d46dfdfa9e45693245853d9d9

URL: 
https://github.com/llvm/llvm-project/commit/9c9bca45f094cf6d46dfdfa9e45693245853d9d9
DIFF: 
https://github.com/llvm/llvm-project/commit/9c9bca45f094cf6d46dfdfa9e45693245853d9d9.diff

LOG: [llvm-pdbutil] Use llvm::is_contained (NFC)

Added: 
    

Modified: 
    llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp 
b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
index 00092e71c6b4..19f4880ab5eb 100644
--- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
+++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
@@ -892,9 +892,9 @@ static void dumpBytes(StringRef Path) {
 bool opts::pretty::shouldDumpSymLevel(SymLevel Search) {
   if (SymTypes.empty())
     return true;
-  if (llvm::find(SymTypes, Search) != SymTypes.end())
+  if (llvm::is_contained(SymTypes, Search))
     return true;
-  if (llvm::find(SymTypes, SymLevel::All) != SymTypes.end())
+  if (llvm::is_contained(SymTypes, SymLevel::All))
     return true;
   return false;
 }


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to