fix(library/compiler/util): typo at has_inline2_attribute

This commit is contained in:
Leonardo de Moura 2019-04-11 14:28:54 -07:00
parent 7461bf9d1d
commit da00dae9df

View file

@ -103,9 +103,9 @@ bool has_inline2_attribute(environment const & env, name const & n) {
if (has_attribute(env, "inline2", n))
return true;
if (is_internal_name(n) && !n.is_atomic()) {
/* Auxiliary declarations such as `f._main` are considered to be marked as `@[inline]`
/* Auxiliary declarations such as `f._main` are considered to be marked as `@[inline2]`
if `f` is marked. */
return has_inline_attribute(env, n.get_prefix());
return has_inline2_attribute(env, n.get_prefix());
}
return false;
}