diff --git a/llvm/tools/file-table-tform/file-table-tform.cpp b/llvm/tools/file-table-tform/file-table-tform.cpp index 98d683a811e47..e361b4676d073 100644 --- a/llvm/tools/file-table-tform/file-table-tform.cpp +++ b/llvm/tools/file-table-tform/file-table-tform.cpp @@ -235,7 +235,7 @@ struct TformCmd { #define CHECK_AND_EXIT(E) \ { \ - Error LocE = std::move(E); \ + Error LocE = E; \ if (LocE) { \ logAllUnhandledErrors(std::move(LocE), WithColor::error(errs())); \ return 1; \ @@ -292,7 +292,7 @@ int main(int argc, char **argv) { TformCmd::UPtrTy &Cmd = P.second; // this will advance cur iterator as far as needed Error E = Cmd->consumeInput(CurInput, EndInput); - CHECK_AND_EXIT(E); + CHECK_AND_EXIT(std::move(E)); } // commands are constructed, command line is correct - read input and execute // transformations on it @@ -305,7 +305,7 @@ int main(int argc, char **argv) { for (auto &P : Cmds) { TformCmd::UPtrTy &Cmd = P.second; Error Res = Cmd->execute(*Table->get()); - CHECK_AND_EXIT(Res); + CHECK_AND_EXIT(std::move(Res)); } // Finally, write the result std::error_code EC; diff --git a/sycl/source/detail/pi.cpp b/sycl/source/detail/pi.cpp index 0ff4081e96ade..1b3679f8ed3c5 100644 --- a/sycl/source/detail/pi.cpp +++ b/sycl/source/detail/pi.cpp @@ -303,8 +303,9 @@ static void initializePlugins(vector_class *Plugins) { std::cerr << "SYCL_PI_TRACE[all]: " << "No Plugins Found." << std::endl; - PiPlugin PluginInformation{_PI_H_VERSION_STRING, _PI_H_VERSION_STRING, - nullptr}; + PiPlugin PluginInformation{ + _PI_H_VERSION_STRING, _PI_H_VERSION_STRING, nullptr, {}}; + PluginInformation.PiFunctionTable = {}; for (unsigned int I = 0; I < PluginNames.size(); I++) { void *Library = loadPlugin(PluginNames[I].first);