diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc --- a/llvm/lib/Support/Windows/Process.inc +++ b/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; }