diff --git a/include/oi/oi.h b/include/oi/oi.h index 195180a..30fb8b2 100644 --- a/include/oi/oi.h +++ b/include/oi/oi.h @@ -38,7 +38,7 @@ template IntrospectionResult __attribute__((weak)) introspectImpl(const T& objectAddr); template -IntrospectionResult introspect(const T& objectAddr) { +__attribute__((noinline)) IntrospectionResult introspect(const T& objectAddr) { if (!introspectImpl) throw std::logic_error( "OIL is expecting AoT compilation but it doesn't appear to have run.");