diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-30 10:01:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-30 10:01:11 +0000 |
commit | bf60ce0ebdd26cfc7753c7321c90f5cc782f0420 (patch) | |
tree | 3b716ca10f2b24f87ca75d7ad38bf8d0d0a03326 /tools/gold | |
parent | fc89a6a1e94b9044b9cde8c7fcc501647383bcc5 (diff) |
Apply clang-tidy's 'performance-faster-string-find' check to LLVM.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index ed8d00256e7..ef021034401 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -203,7 +203,7 @@ namespace options { thinlto_emit_imports_files = true; } else if (opt.startswith("thinlto-prefix-replace=")) { thinlto_prefix_replace = opt.substr(strlen("thinlto-prefix-replace=")); - if (thinlto_prefix_replace.find(";") == std::string::npos) + if (thinlto_prefix_replace.find(';') == std::string::npos) message(LDPL_FATAL, "thinlto-prefix-replace expects 'old;new' format"); } else if (opt.startswith("cache-dir=")) { cache_dir = opt.substr(strlen("cache-dir=")); |