aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-04 11:42:47 -0800
committerKazu Hirata <kazu@google.com>2021-01-04 11:42:47 -0800
commiteb198f4c3cedae4e9778f11e76e0fa1f1b61b622 (patch)
tree27a888e662e860a341071bf6ad2791bd1dbc6d80 /llvm/lib/Support/SourceMgr.cpp
parent0edbc90ec565758f5243b83b1c0a13beaf21214f (diff)
downloadllvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.zip
llvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.tar.gz
llvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.tar.bz2
[llvm] Use llvm::any_of (NFC)
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 499d981..89b7dc9 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/lib/Support/SourceMgr.cpp
@@ -522,7 +522,7 @@ void SMDiagnostic::print(const char *ProgName, raw_ostream &OS, bool ShowColors,
// map like Clang's TextDiagnostic. For now, we'll just handle tabs by
// expanding them later, and bail out rather than show incorrect ranges and
// misaligned fixits for any other odd characters.
- if (find_if(LineContents, isNonASCII) != LineContents.end()) {
+ if (any_of(LineContents, isNonASCII)) {
printSourceLine(OS, LineContents);
return;
}