Skip to content

Commit

Permalink
[GlobPattern] Fix build error
Browse files Browse the repository at this point in the history
This fixes a build error introduced by https://reviews.llvm.org/D153587
  • Loading branch information
ellishg committed Aug 30, 2023
1 parent ddb3f12 commit 2bfb414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Support/GlobPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ GlobPattern::create(StringRef S, std::optional<size_t> MaxSubPatterns) {

SmallVector<std::string, 1> SubPats;
if (auto Err = parseBraceExpansions(S, MaxSubPatterns).moveInto(SubPats))
return Err;
return std::move(Err);
for (StringRef SubPat : SubPats) {
auto SubGlobOrErr = SubGlobPattern::create(SubPat);
if (!SubGlobOrErr)
Expand Down

0 comments on commit 2bfb414

Please sign in to comment.