diff --git a/orc-rt/include/orc-rt/Error.h b/orc-rt/include/orc-rt/Error.h index a25c7831644e..fe0754bd1103 100644 --- a/orc-rt/include/orc-rt/Error.h +++ b/orc-rt/include/orc-rt/Error.h @@ -126,7 +126,7 @@ private: }; /// Create an Error from an ErrorInfoBase. -Error make_error(std::unique_ptr Payload) { +inline Error make_error(std::unique_ptr Payload) { return Error(std::move(Payload)); }