[PATCH] D138942: Support: Make Wait's SecondsToWait be Optional [NFC]
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 22:55:43 PST 2022
sepavloff added inline comments.
================
Comment at: llvm/lib/Support/Windows/Program.inc:419
milliSecondsToWait = INFINITE;
- else if (SecondsToWait > 0)
- milliSecondsToWait = SecondsToWait * 1000;
+ else if (SecondsToWait)
+ milliSecondsToWait = *SecondsToWait * 1000;
----------------
`if` here is excessive.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138942/new/
https://reviews.llvm.org/D138942
More information about the llvm-commits
mailing list