aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-10-21 08:58:19 -0700
committerKazu Hirata <kazu@google.com>2021-10-21 08:58:19 -0700
commitdccfaddc6bcc711bd972b43bff5ce6d71c1b39dc (patch)
treed2ef676bf353dd840f3c78fe128215d780826397 /clang/lib/CodeGen/TargetInfo.cpp
parentf6811cec84218912d1c7c9b0b8d308834e6e24e3 (diff)
downloadllvm-dccfaddc6bcc711bd972b43bff5ce6d71c1b39dc.zip
llvm-dccfaddc6bcc711bd972b43bff5ce6d71c1b39dc.tar.gz
llvm-dccfaddc6bcc711bd972b43bff5ce6d71c1b39dc.tar.bz2
[clang] Use StringRef::contains (NFC)
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 10951a0..c763463 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -2646,7 +2646,7 @@ static std::string qualifyWindowsLibrary(llvm::StringRef Lib) {
// If the argument does not end in .lib, automatically add the suffix.
// If the argument contains a space, enclose it in quotes.
// This matches the behavior of MSVC.
- bool Quote = (Lib.find(' ') != StringRef::npos);
+ bool Quote = Lib.contains(' ');
std::string ArgStr = Quote ? "\"" : "";
ArgStr += Lib;
if (!Lib.endswith_insensitive(".lib") && !Lib.endswith_insensitive(".a"))