aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ELFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index c293fdd..ebc57bd 100644
--- a/llvm/lib/Object/ELFObjectFile.cpp
+++ b/llvm/lib/Object/ELFObjectFile.cpp
@@ -297,7 +297,7 @@ Expected<SubtargetFeatures> ELFObjectFileBase::getRISCVFeatures() const {
RISCVAttributeParser Attributes;
if (Error E = getBuildAttributes(Attributes)) {
- return E;
+ return std::move(E);
}
std::optional<StringRef> Attr =