Skip to content

Commit

Permalink
Improve handling of function inlining a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 17, 2023
1 parent 42f9055 commit 1ddee47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/jit/jit-playback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ new_function (location *loc,
for (auto attr: attributes)
{
if (attr == GCC_JIT_FN_ATTRIBUTE_INLINE)
{
DECL_DECLARED_INLINE_P (fndecl) = 1;
continue;
}

const char* attribute = fn_attribute_to_string (attr);
if (attribute)
Expand Down

0 comments on commit 1ddee47

Please sign in to comment.