summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/COFF/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 0c2c0abdf90..7a965fa87f2 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -57,8 +57,7 @@ bool link(ArrayRef<const char *> Args, raw_ostream &Diag) {
ErrorOS = &Diag;
Config = make<Configuration>();
Config->Argv = {Args.begin(), Args.end()};
- Config->ColorDiagnostics =
- (ErrorOS == &llvm::errs() && Process::StandardErrHasColors());
+ Config->ColorDiagnostics = ErrorOS->has_colors();
Driver = make<LinkerDriver>();
Driver->link(Args);
return !ErrorCount;
OpenPOWER on IntegriCloud