Skip to content

Commit b330d1d

Browse files
authored
[SYCL][NFC] Code clean up (phase 4) revealed by self build. (#2878)
1 parent 7326c87 commit b330d1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/tools/file-table-tform/file-table-tform.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)