File tree 1 file changed +3
-3
lines changed
llvm/tools/file-table-tform
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ struct TformCmd {
235
235
236
236
#define CHECK_AND_EXIT (E ) \
237
237
{ \
238
- Error LocE = std::move (E); \
238
+ Error LocE = E; \
239
239
if (LocE) { \
240
240
logAllUnhandledErrors (std::move (LocE), WithColor::error (errs ())); \
241
241
return 1 ; \
@@ -292,7 +292,7 @@ int main(int argc, char **argv) {
292
292
TformCmd::UPtrTy &Cmd = P.second ;
293
293
// this will advance cur iterator as far as needed
294
294
Error E = Cmd->consumeInput (CurInput, EndInput);
295
- CHECK_AND_EXIT (E );
295
+ CHECK_AND_EXIT (std::move (E) );
296
296
}
297
297
// commands are constructed, command line is correct - read input and execute
298
298
// transformations on it
@@ -305,7 +305,7 @@ int main(int argc, char **argv) {
305
305
for (auto &P : Cmds) {
306
306
TformCmd::UPtrTy &Cmd = P.second ;
307
307
Error Res = Cmd->execute (*Table->get ());
308
- CHECK_AND_EXIT (Res);
308
+ CHECK_AND_EXIT (std::move ( Res) );
309
309
}
310
310
// Finally, write the result
311
311
std::error_code EC;
You can’t perform that action at this time.
0 commit comments