Bail early if there is no existing output file to be overwritten.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lld/Common/Filesystem.cpp | ||
---|---|---|
69 | Should it be at the begining of the method to be shared with !_WIN32? I see it has this in the condition below: if (parallel::strategy.ThreadsRequested == 1 || !sys::fs::exists(path) || !sys::fs::is_regular_file(path)) return; |
Comment Actions
BTW - I realised that this function needs formatting correctly :(
*Update*: I was wrong, the formatting is fine - sorry for the noise!
lld/Common/Filesystem.cpp | ||
---|---|---|
69 | Yes. We can share these conditions between the two paths. |
lld/Common/Filesystem.cpp | ||
---|---|---|
47 | Sorry. Premature optimisation. |
This empty line is probably excessive.