================
@@ -137,7 +137,7 @@ GlobPattern::create(StringRef S, std::optional<size_t> 
MaxSubPatterns) {
   GlobPattern Pat;
 
   // Store the prefix that does not contain any metacharacter.
-  size_t PrefixSize = S.find_first_of("?*[{\\");
+  size_t PrefixSize = S.find_first_of("?*[{\\/");
----------------
vitalybuka wrote:

Now it breaks optimization for all platforms.

Maybe add a member of GlobPattern::IsSlashAgnostic?

https://github.com/llvm/llvm-project/pull/149886
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to