fix ICE when asm_const and const_refs_to_static are combined
#129472
Merged
asm_const and const_refs_to_static are combined
#129472