diff options
author | Kazu Hirata <kazu@google.com> | 2021-10-21 08:58:19 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-10-21 08:58:19 -0700 |
commit | dccfaddc6bcc711bd972b43bff5ce6d71c1b39dc (patch) | |
tree | d2ef676bf353dd840f3c78fe128215d780826397 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f6811cec84218912d1c7c9b0b8d308834e6e24e3 (diff) | |
download | llvm-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.cpp | 3 |
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) |