diff options
Diffstat (limited to 'clang/lib/Frontend/LayoutOverrideSource.cpp')
-rw-r--r-- | clang/lib/Frontend/LayoutOverrideSource.cpp | 2 |
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; |