From 2778e4d8f2afae1228cc37ff7c8139dd213172a6 Mon Sep 17 00:00:00 2001 From: timholy Date: Fri, 18 Apr 2014 10:52:07 -0500 Subject: [PATCH] Don't declare Intrinsics.box as pure (fix #6566) --- base/inference.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/base/inference.jl b/base/inference.jl index 5ee60df70a02e..bf3cd12f6ed1b 100644 --- a/base/inference.jl +++ b/base/inference.jl @@ -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