D96986 refactors this bit entirely though.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sure, assuming it passes tests.
However, eyeballing the uses of this thing, I got to directory_iterator.cpp, which does
err.report(m_ec, "at root \"%s\"", root);
That produces garbage on Windows, right? because root is a path and the way we unwrap(path const&) is to turn it into a wchar_t*, not a char*?
Comment Actions
Oh, you're right - I had missed that one (I have the same issue fixed in a couple other cases in operations.cpp). Thanks! I tried applying D96986 and then I do get format warnings that point out exactly this.
I'll get a fix posted for that issue.