File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/tools/file-table-tform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ struct TformCmd {
235235
236236#define CHECK_AND_EXIT (E ) \
237237 { \
238- Error LocE = std::move (E); \
238+ Error LocE = E; \
239239 if (LocE) { \
240240 logAllUnhandledErrors (std::move (LocE), WithColor::error (errs ())); \
241241 return 1 ; \
@@ -292,7 +292,7 @@ int main(int argc, char **argv) {
292292 TformCmd::UPtrTy &Cmd = P.second ;
293293 // this will advance cur iterator as far as needed
294294 Error E = Cmd->consumeInput (CurInput, EndInput);
295- CHECK_AND_EXIT (E );
295+ CHECK_AND_EXIT (std::move (E) );
296296 }
297297 // commands are constructed, command line is correct - read input and execute
298298 // transformations on it
@@ -305,7 +305,7 @@ int main(int argc, char **argv) {
305305 for (auto &P : Cmds) {
306306 TformCmd::UPtrTy &Cmd = P.second ;
307307 Error Res = Cmd->execute (*Table->get ());
308- CHECK_AND_EXIT (Res);
308+ CHECK_AND_EXIT (std::move ( Res) );
309309 }
310310 // Finally, write the result
311311 std::error_code EC;
You can’t perform that action at this time.
0 commit comments