Skip to content

Commit acecd5c

Browse files
committed
fix
1 parent b1b5781 commit acecd5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ function unsafe_to_llvm(B::LLVM.IRBuilder, @nospecialize(val); insert_name_if_no
122122
if legal
123123
curent_bb = position(B)
124124
fn = LLVM.parent(curent_bb)
125-
inactive = Compiler.guaranteed_const_nongen(jTy, world)
125+
state = active_reg(jTy, world)
126+
inactive = state == ConstState ||state == ActiveState
126127
end
127128
end
128129
if inactive

0 commit comments

Comments
 (0)