Skip to content

Commit

Permalink
Don't declare Intrinsics.box as pure (fix #6566)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Apr 18, 2014
1 parent 752dc20 commit 2778e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ function is_pure_builtin(f)
f === Intrinsics.pointerset || # this one is never effect-free
f === Intrinsics.ccall || # this one is never effect-free
f === Intrinsics.jl_alloca || # this one is volatile, TODO: possibly also effect-free?
f === Intrinsics.box ||
f === Intrinsics.pointertoref) # this one is volatile
return true
end
Expand Down

0 comments on commit 2778e4d

Please sign in to comment.