[orc-rt] Add inline specifier to orc_rt::make_error. (#154922)

Prevents linker errors for duplicate definitions when make_error is used
from more than one file.
This commit is contained in:
Lang Hames 2025-08-22 20:37:10 +10:00 committed by GitHub
parent d6fcaef281
commit d5af08a221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,7 @@ private:
};
/// Create an Error from an ErrorInfoBase.
Error make_error(std::unique_ptr<ErrorInfoBase> Payload) {
inline Error make_error(std::unique_ptr<ErrorInfoBase> Payload) {
return Error(std::move(Payload));
}