From 3a72bcbf333c2a75b5f784e0aaedc5586e15f48e Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Tue, 24 Oct 2023 11:47:12 -0700 Subject: [PATCH] [BOLT] Fix build issues after #69836 (#70087) 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 acc441aca480..8e2331db3e33 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 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