Skip to content

Commit 6eb42db

Browse files
authored
Fix missing nargs setting in abioverride test (#57144)
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.
1 parent 3054c68 commit 6eb42db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Compiler/test/abioverride.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ let world = Base.tls_world_age()
4040
## Remove the argument
4141
resize!(new_source.slotnames, 2)
4242
resize!(new_source.slotflags, 2)
43+
new_source.nargs = 2
4344

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

0 commit comments

Comments
 (0)