summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/driver/driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp
index 15936bf219f..3c66f8a2f02 100644
--- a/clang/tools/driver/driver.cpp
+++ b/clang/tools/driver/driver.cpp
@@ -350,8 +350,8 @@ int main(int argc_, const char **argv_) {
// If the clang binary happens to be named cl.exe for compatibility reasons,
// use clang-cl.exe as the prefix to avoid confusion between clang and MSVC.
StringRef ExeBasename(llvm::sys::path::filename(Path));
- if (ExeBasename.trim().equals_lower("cl.exe"))
- ExeBasename = "clang-cl.exe";
+ if (ExeBasename.equals_lower("cl.exe"))
+ ExeBasename = "clang cl.exe";
DiagClient->setPrefix(ExeBasename);
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
OpenPOWER on IntegriCloud