[BOLT] Fix build issues after #69836 (#70087)

Fix clang build (`return Error => return std::move(Error)`)
This commit is contained in:
Amir Ayupov
2023-10-24 11:47:12 -07:00
committed by GitHub
parent 20d97adfd3
commit 3a72bcbf33

View File

@@ -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