Skip to content

Commit 3a72bcb

Browse files
authored
[BOLT] Fix build issues after #69836 (#70087)
Fix clang build (`return Error => return std::move(Error)`)
1 parent 20d97ad commit 3a72bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Core/BinaryContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ BinaryContext::createBinaryContext(const ObjectFile *File, bool IsPIC,
133133
Expected<SubtargetFeatures> Features = File->getFeatures();
134134

135135
if (auto E = Features.takeError())
136-
return E;
136+
return std::move(E);
137137

138138
// We rely on relaxation for some transformations (e.g., promoting all calls
139139
// to PseudoCALL and then making JITLink relax them). Since the relax

0 commit comments

Comments
 (0)