diff options
author | Kazu Hirata <kazu@google.com> | 2020-08-01 21:49:38 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2020-08-01 21:51:06 -0700 |
commit | 60434989e5cd718e0f84c7601f648aecd1e8e1eb (patch) | |
tree | 402e5ad3765be775c516fdbaf3e208d0c3041828 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 0f5b70769d15d8cc728dcba353a33fb459450381 (diff) | |
download | llvm-60434989e5cd718e0f84c7601f648aecd1e8e1eb.zip llvm-60434989e5cd718e0f84c7601f648aecd1e8e1eb.tar.gz llvm-60434989e5cd718e0f84c7601f648aecd1e8e1eb.tar.bz2 |
Use llvm::is_contained where appropriate (NFC)
Use llvm::is_contained where appropriate (NFC)
Reviewed By: kazu
Differential Revision: https://reviews.llvm.org/D85083
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 5d52e7f..b388e43 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -494,8 +494,7 @@ void CodeViewDebug::recordLocalVariable(LocalVariable &&Var, static void addLocIfNotPresent(SmallVectorImpl<const DILocation *> &Locs, const DILocation *Loc) { - auto B = Locs.begin(), E = Locs.end(); - if (std::find(B, E, Loc) == E) + if (!llvm::is_contained(Locs, Loc)) Locs.push_back(Loc); } |