From cf759f68a0ff47aab6c49ee90ace910ee9321b96 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Thu, 11 Dec 2025 14:23:56 -0800 Subject: [PATCH] [NFC] Direct printCompileJobCacheKey to correct raw_ostream Make sure output of printCompileJobCacheKey is sent to the correct raw_ostream, not to llvm::outs() all the time. --- lib/Frontend/CompileJobCacheKey.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Frontend/CompileJobCacheKey.cpp b/lib/Frontend/CompileJobCacheKey.cpp index 7a844cf4a88f2..bb8c94d69f558 100644 --- a/lib/Frontend/CompileJobCacheKey.cpp +++ b/lib/Frontend/CompileJobCacheKey.cpp @@ -152,10 +152,10 @@ llvm::Error swift::printCompileJobCacheKey(llvm::cas::ObjectStore &CAS, if (Err) return Err; - llvm::outs() << "Cache Key " << CAS.getID(Key).toString() << "\n"; - llvm::outs() << "Swift Compiler Invocation Info:\n"; - llvm::outs() << BaseStr; - llvm::outs() << "Input index: " << InputIndex << "\n"; + OS << "Cache Key " << CAS.getID(Key).toString() << "\n"; + OS << "Swift Compiler Invocation Info:\n"; + OS << BaseStr; + OS << "Input index: " << InputIndex << "\n"; return llvm::Error::success(); }