@@ -2,7 +2,7 @@ using Core.Compiler: MethodInstance, IncrementalCompact, insert_node_here!,
2
2
userefs, SlotNumber, IRCode, compute_basic_blocks, _methods_by_ftype,
3
3
retrieve_code_info, CodeInfo, SSAValue, finish, complete, non_dce_finish!,
4
4
GotoNode, GotoIfNot, block_for_inst, ReturnNode, Argument, compact!,
5
- OldSSAValue, NewvarNode
5
+ OldSSAValue, NewvarNode, quoted
6
6
7
7
using Base. Meta
8
8
@@ -756,7 +756,7 @@ function transform!(ci, meth, nargs, sparams, N)
756
756
op[] = arg_mapping[val. n]
757
757
end
758
758
if isexpr (val, :static_parameter )
759
- op[] = sparams[val. args[1 ]]
759
+ op[] = quoted ( sparams[val. args[1 ]])
760
760
end
761
761
end
762
762
compact[idx] = stmt = urs[]
@@ -778,7 +778,7 @@ function transform!(ci, meth, nargs, sparams, N)
778
778
NewInstruction (Expr (:call , getfield, SSAValue (idx), 2 ), Any, compact. result[idx][:line ]),
779
779
true )
780
780
elseif isexpr (stmt, :static_parameter )
781
- stmt = sparams[stmt. args[1 ]]
781
+ stmt = quoted ( sparams[stmt. args[1 ]])
782
782
if isexpr (orig_stmt, :(= ))
783
783
orig_stmt. args[2 ] = stmt
784
784
stmt = orig_stmt
0 commit comments