[llvm] 2bfb414 - [GlobPattern] Fix build error
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 30 08:58:03 PDT 2023
Author: Ellis Hoag
Date: 2023-08-30T08:55:44-07:00
New Revision: 2bfb41426bf2feef8b97b7a63e57416d1cf45dba
URL: https://github.com/llvm/llvm-project/commit/2bfb41426bf2feef8b97b7a63e57416d1cf45dba
DIFF: https://github.com/llvm/llvm-project/commit/2bfb41426bf2feef8b97b7a63e57416d1cf45dba.diff
LOG: [GlobPattern] Fix build error
This fixes a build error introduced by https://reviews.llvm.org/D153587
Added:
Modified:
llvm/lib/Support/GlobPattern.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/GlobPattern.cpp b/llvm/lib/Support/GlobPattern.cpp
index 8c29451b620b23..9813ed2d7a1425 100644
--- a/llvm/lib/Support/GlobPattern.cpp
+++ b/llvm/lib/Support/GlobPattern.cpp
@@ -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)
More information about the llvm-commits
mailing list