Skip to content

Commit 2920fe4

Browse files
committed
[BatchMode] Print multiple additional outputs in -parseable-output.
1 parent 7981714 commit 2920fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Driver/ParseableOutput.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ class DetailedCommandBasedMessage : public CommandBasedMessage {
133133
}
134134
}
135135
types::forAllTypes([&](types::ID Ty) {
136-
auto Output = Cmd.getOutput().getAdditionalOutputForType(Ty);
137-
if (!Output.empty())
138-
Outputs.push_back(OutputPair(Ty, Output));
136+
for (auto Output : Cmd.getOutput().getAdditionalOutputsForType(Ty)) {
137+
Outputs.push_back(OutputPair(Ty, Output));
138+
}
139139
});
140140
}
141141

0 commit comments

Comments
 (0)