Skip to content

Commit 7d690a4

Browse files
authored
Merge pull request #62723 from valeriyvan/ArgsToFrontendOutputsConverter
Fix bug: The '?:' operator has a lower priority than the '==' operator.
2 parents 50b48b4 + 117ea88 commit 7d690a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Frontend/ArgsToFrontendOutputsConverter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ SupplementaryOutputPathsComputer::computeOutputPaths() const {
282282
else {
283283
// Multi-threaded WMO is the exception
284284
assert(OutputFiles.size() == InputsAndOutputs.inputCount() &&
285-
pathsFromUser->size() == InputsAndOutputs.hasInputs()
286-
? 1
287-
: 0);
285+
pathsFromUser->size() == (InputsAndOutputs.hasInputs() ? 1 : 0));
288286
}
289287

290288
std::vector<SupplementaryOutputPaths> outputPaths;

0 commit comments

Comments
 (0)