Skip to content

Commit

Permalink
Fix missing nargs setting in abioverride test
Browse files Browse the repository at this point in the history
The only place that really reads this is the debug info generation, which is not enabled by default, but this test would crash if you ran it on a debug build of julia.
  • Loading branch information
Keno authored Jan 23, 2025
1 parent b76fd9f commit d4454df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/test/abioverride.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let world = Base.tls_world_age()
## Remove the argument
resize!(new_source.slotnames, 2)
resize!(new_source.slotflags, 2)
new_source.nargs = 2

# Construct the CodeInstance from the modified CodeInfo data
global new_ci = Core.CodeInstance(Core.ABIOverride(Tuple{typeof(myplus), Int}, mi),
Expand Down

0 comments on commit d4454df

Please sign in to comment.