[PATCH] D126675: [Windows] Don't try to wildcard expand paths starting with \\?\
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 01:26:59 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e2afe83e88d: [Windows] Don't try to wildcard expand paths starting with \\?\ (authored by mstorsjo).
Changed prior to commit:
https://reviews.llvm.org/D126675?vs=432977&id=433313#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126675/new/
https://reviews.llvm.org/D126675
Files:
llvm/lib/Support/Windows/Process.inc
Index: llvm/lib/Support/Windows/Process.inc
===================================================================
--- llvm/lib/Support/Windows/Process.inc
+++ llvm/lib/Support/Windows/Process.inc
@@ -156,9 +156,10 @@
// Don't expand Arg if it does not contain any wildcard characters. This is
// the common case. Also don't wildcard expand /?. Always treat it as an
- // option.
+ // option. Paths that start with \\?\ are absolute paths, and aren't
+ // expected to be used with wildcard expressions.
if (Arg.find_first_of("*?") == StringRef::npos || Arg == "/?" ||
- Arg == "-?") {
+ Arg == "-?" || Arg.startswith("\\\\?\\")) {
Args.push_back(Arg.data());
return EC;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126675.433313.patch
Type: text/x-patch
Size: 706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/f82c55cc/attachment-0001.bin>
More information about the llvm-commits
mailing list