aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.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/CodeGenFunction.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/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 0b336d4..fc4540f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2500,8 +2500,7 @@ void CodeGenFunction::checkTargetFeatures(SourceLocation Loc,
// Return if the builtin doesn't have any required features.
if (FeatureList.empty())
return;
- assert(FeatureList.find(' ') == StringRef::npos &&
- "Space in feature list");
+ assert(!FeatureList.contains(' ') && "Space in feature list");
TargetFeatures TF(CallerFeatureMap);
if (!TF.hasRequiredFeatures(FeatureList))
CGM.getDiags().Report(Loc, diag::err_builtin_needs_feature)