[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:
parent
d6fcaef281
commit
d5af08a221
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user