[llvm] r275642 - [llvm-cov] Attempt to appease Windows bots
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 15 16:08:22 PDT 2016
Author: vedantk
Date: Fri Jul 15 18:08:22 2016
New Revision: 275642
URL: http://llvm.org/viewvc/llvm-project?rev=275642&view=rev
Log:
[llvm-cov] Attempt to appease Windows bots
They appear to reject r275640 because stdin is held open during an
ExecuteAndWait in which it's redirected:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/8390
Modified:
llvm/trunk/tools/llvm-cov/CodeCoverage.cpp
Modified: llvm/trunk/tools/llvm-cov/CodeCoverage.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/CodeCoverage.cpp?rev=275642&r1=275641&r2=275642&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/CodeCoverage.cpp (original)
+++ llvm/trunk/tools/llvm-cov/CodeCoverage.cpp Fri Jul 15 18:08:22 2016
@@ -327,7 +327,7 @@ void CodeCoverageTool::demangleSymbols(c
InputTOF.os() << Function.Name << '\n';
++NumSymbols;
}
- InputTOF.os().flush();
+ InputTOF.os().close();
// Use another temporary file to store the demangler's output.
int OutputFD;
@@ -339,6 +339,7 @@ void CodeCoverageTool::demangleSymbols(c
return;
}
tool_output_file OutputTOF{OutputPath, OutputFD};
+ OutputTOF.os().close();
// Invoke the demangler.
std::vector<const char *> ArgsV;
More information about the llvm-commits
mailing list