Skip to content

Commit d5af08a

Browse files
authored
[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.
1 parent d6fcaef commit d5af08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orc-rt/include/orc-rt/Error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class ORC_RT_NODISCARD Error {
126126
};
127127

128128
/// Create an Error from an ErrorInfoBase.
129-
Error make_error(std::unique_ptr<ErrorInfoBase> Payload) {
129+
inline Error make_error(std::unique_ptr<ErrorInfoBase> Payload) {
130130
return Error(std::move(Payload));
131131
}
132132

0 commit comments

Comments
 (0)