aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/LayoutOverrideSource.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-10-19 08:54:02 -0700
committerKazu Hirata <kazu@google.com>2021-10-19 08:54:02 -0700
commitcf68e1b2fb4f6172b08f3430b2530dc2d193ab60 (patch)
treeebb82a66653ddbf96cd26fc1d73bd7f87b266cfc /clang/lib/Frontend/LayoutOverrideSource.cpp
parentb492b0be95d9134bfb092eb2c73cf6996c4518f7 (diff)
downloadllvm-cf68e1b2fb4f6172b08f3430b2530dc2d193ab60.zip
llvm-cf68e1b2fb4f6172b08f3430b2530dc2d193ab60.tar.gz
llvm-cf68e1b2fb4f6172b08f3430b2530dc2d193ab60.tar.bz2
[Driver, Frontend] Use StringRef::contains (NFC)
Diffstat (limited to 'clang/lib/Frontend/LayoutOverrideSource.cpp')
-rw-r--r--clang/lib/Frontend/LayoutOverrideSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/LayoutOverrideSource.cpp b/clang/lib/Frontend/LayoutOverrideSource.cpp
index c735c6c..0d288db 100644
--- a/clang/lib/Frontend/LayoutOverrideSource.cpp
+++ b/clang/lib/Frontend/LayoutOverrideSource.cpp
@@ -43,7 +43,7 @@ LayoutOverrideSource::LayoutOverrideSource(StringRef Filename) {
StringRef LineStr(Line);
// Determine whether the following line will start a
- if (LineStr.find("*** Dumping AST Record Layout") != StringRef::npos) {
+ if (LineStr.contains("*** Dumping AST Record Layout")) {
// Flush the last type/layout, if there is one.
if (!CurrentType.empty())
Layouts[CurrentType] = CurrentLayout;