Skip to content

Commit

Permalink
bolt: Update more sys::Wait calls
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Dec 14, 2022
1 parent cc9d9df commit 765f3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bolt/lib/Profile/DataAggregator.cpp
Expand Up @@ -487,7 +487,7 @@ Error DataAggregator::preprocessProfile(BinaryContext &BC) {
std::string Error;
outs() << "PERF2BOLT: waiting for perf " << Name
<< " collection to finish...\n";
sys::ProcessInfo PI = sys::Wait(Process.PI, 0, true, &Error);
sys::ProcessInfo PI = sys::Wait(Process.PI, std::nullopt, &Error);

if (!Error.empty()) {
errs() << "PERF-ERROR: " << PerfPath << ": " << Error << "\n";
Expand Down Expand Up @@ -572,7 +572,7 @@ Error DataAggregator::preprocessProfile(BinaryContext &BC) {

// Special handling for memory events
std::string Error;
sys::ProcessInfo PI = sys::Wait(MemEventsPPI.PI, 0, true, &Error);
sys::ProcessInfo PI = sys::Wait(MemEventsPPI.PI, std::nullopt, &Error);
if (PI.ReturnCode != 0) {
ErrorOr<std::unique_ptr<MemoryBuffer>> MB =
MemoryBuffer::getFileOrSTDIN(MemEventsPPI.StderrPath.data());
Expand Down

0 comments on commit 765f3ca

Please sign in to comment.