Skip to content

Commit

Permalink
oil: make AoT introspect noinline
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHillion committed Oct 25, 2023
1 parent 6773984 commit fcb50df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/oi/oi.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ template <class T, Feature... Fs>
IntrospectionResult __attribute__((weak)) introspectImpl(const T& objectAddr);

template <typename T, Feature... Fs>
IntrospectionResult introspect(const T& objectAddr) {
__attribute__((noinline)) IntrospectionResult introspect(const T& objectAddr) {
if (!introspectImpl<T, Fs...>)
throw std::logic_error(
"OIL is expecting AoT compilation but it doesn't appear to have run.");
Expand Down

0 comments on commit fcb50df

Please sign in to comment.