projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3479543
)
[TextAPI] wrap returned Errors in std::move
author
Cyndy Ishida
<cyndy_ishida@apple.com>
Sat, 18 Feb 2023 00:15:12 +0000
(16:15 -0800)
committer
Cyndy Ishida
<cyndy_ishida@apple.com>
Sat, 18 Feb 2023 00:16:12 +0000
(16:16 -0800)
llvm/lib/TextAPI/TextStubV5.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TextAPI/TextStubV5.cpp
b/llvm/lib/TextAPI/TextStubV5.cpp
index
431d285
..
30faad5
100644
(file)
--- a/
llvm/lib/TextAPI/TextStubV5.cpp
+++ b/
llvm/lib/TextAPI/TextStubV5.cpp
@@
-404,12
+404,12
@@
Expected<TargetsToSymbols> getSymbolSection(const Object *File, TBDKey Key,
if (DataSection) {
auto Err = collectSymbolsFromSegment(DataSection, Result, SectionFlag);
if (Err)
- return
Err
;
+ return
std::move(Err)
;
}
if (TextSection) {
auto Err = collectSymbolsFromSegment(TextSection, Result, SectionFlag);
if (Err)
- return
Err
;
+ return
std::move(Err)
;
}
}
@@
-442,7
+442,7
@@
Expected<AttrToTargets> getLibSection(const Object *File, TBDKey Key,
Result[Key.str()] = MappedTargets;
});
if (Err)
- return
Err
;
+ return
std::move(Err)
;
}
return Result;
@@
-548,7
+548,7
@@
Expected<TBDFlags> getFlags(const Object *File) {
});
if (FlagsOrErr)
- return
FlagsOrErr
;
+ return
std::move(FlagsOrErr)
;
return Flags;
}