This saves a call to stat().
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Can you add a comment indicating what the first two flags are used for? They aren't very common, so it might help someone in the future understand what's going on.
Also maybe a top-level comment indicating why we're doing things this way instead of the old way.
Don't need to re-upload, lgtm already.
llvm/lib/Support/Windows/Path.inc | ||
---|---|---|
265 ↗ | (On Diff #118428) | Zach's right that this is likely a tad faster, but it's also a little less clear. How about a comment to make it point out that we're using CreateFileW to mark the file/direction for deletion? |