[llvm] [BOLT] Fix build issues after #69836 (PR #70087)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 11:21:31 PDT 2023
https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/70087
Fix clang build (`return Error => return std::move(Error)`)
>From 78fada9487d05edc6abf1d48d28698c042c8023c Mon Sep 17 00:00:00 2001
From: Amir Ayupov <aaupov at fb.com>
Date: Tue, 24 Oct 2023 10:51:36 -0700
Subject: [PATCH] [BOLT] Fix build issues after #69836
Fix clang build (`return Error => return std::move(Error)`)
---
bolt/lib/Core/BinaryContext.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/lib/Core/BinaryContext.cpp b/bolt/lib/Core/BinaryContext.cpp
index acc441aca480d49..8e2331db3e33032 100644
--- a/bolt/lib/Core/BinaryContext.cpp
+++ b/bolt/lib/Core/BinaryContext.cpp
@@ -133,7 +133,7 @@ BinaryContext::createBinaryContext(const ObjectFile *File, bool IsPIC,
Expected<SubtargetFeatures> Features = File->getFeatures();
if (auto E = Features.takeError())
- return E;
+ return std::move(E);
// We rely on relaxation for some transformations (e.g., promoting all calls
// to PseudoCALL and then making JITLink relax them). Since the relax
More information about the llvm-commits
mailing list