diff options
Diffstat (limited to 'lld/ELF/Error.cpp')
| -rw-r--r-- | lld/ELF/Error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp index 224570ea742..dce57776ebe 100644 --- a/lld/ELF/Error.cpp +++ b/lld/ELF/Error.cpp @@ -41,7 +41,7 @@ static void newline(const Twine &Msg) { if (Flag) *ErrorOS << "\n"; - Flag = (StringRef(Msg.str()).find('\n') != StringRef::npos); + Flag = StringRef(Msg.str()).contains('\n'); } static void print(StringRef S, raw_ostream::Colors C) { |

