@@ -1309,7 +1309,7 @@ end
13091309
13101310# Tests for code_typed linetable annotations
13111311function compute_annotations (f, types)
1312- src = code_typed (f, types)[1 ][1 ]
1312+ src = code_typed (f, types, debuginfo = :source )[1 ][1 ]
13131313 ir = Core. Compiler. inflate_ir (src)
13141314 la, lb, ll = Base. IRShow. compute_ir_line_annotations (ir)
13151315 max_loc_method = maximum (length (s) for s in la)
@@ -1364,7 +1364,7 @@ eval(Meta.parse("""function my_fun28173(x)
13641364 end
13651365 return y
13661366end""" )) # use parse to control the line numbers
1367- let src = code_typed (my_fun28173, (Int,))[1 ][1 ]
1367+ let src = code_typed (my_fun28173, (Int,), debuginfo = :source )[1 ][1 ]
13681368 ir = Core. Compiler. inflate_ir (src)
13691369 fill! (src. codelocs, 0 ) # IRCode printing is only capable of printing partial line info
13701370 let source_slotnames = String[" my_fun28173" , " x" ],
@@ -1402,7 +1402,7 @@ end
14021402# Verify that extra instructions at the end of the IR
14031403# don't throw errors in the printing, but instead print
14041404# with as unnamed "!" BB.
1405- let src = code_typed (gcd, (Int, Int))[1 ][1 ]
1405+ let src = code_typed (gcd, (Int, Int), debuginfo = :source )[1 ][1 ]
14061406 ir = Core. Compiler. inflate_ir (src)
14071407 push! (ir. stmts, Core. Compiler. ReturnNode ())
14081408 lines = split (sprint (show, ir), ' \n ' )
0 commit comments