mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
oil: make AoT introspect noinline
This commit is contained in:
parent
67739840fe
commit
fcb50df611
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user