[OpenMP][FIX] Avoid using an Error object after a std::move.
authorJohannes Doerfert <johannes@jdoerfert.de>
Mon, 9 Jan 2023 21:03:28 +0000 (13:03 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 10 Jan 2023 00:03:52 +0000 (16:03 -0800)
commitbdcbf6c85df411d63dbfd5caea2ddda0ce959de7
tree3d2f874e7ecb90436558420723d0c28bf38f33fe
parent3071bdc327814bdbf6c52ddc652d2ec3946bad06
[OpenMP][FIX] Avoid using an Error object after a std::move.

The error was always a success even if the error case happened as the
std::move reseted the error object.
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp