From efc9a6c1e17c8f3414f505b4469f1184bc5d9e05 Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Fri, 19 Jan 2024 02:23:05 -0500 Subject: [PATCH] Guard use of `@atomic` with `@static if` --- src/anonymous.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anonymous.jl b/src/anonymous.jl index 990be66..b22f476 100644 --- a/src/anonymous.jl +++ b/src/anonymous.jl @@ -108,7 +108,7 @@ end baremodule __deserialized_types__ end -if VERSION < v"1.7-" +@static if VERSION < v"1.7-" function newstruct_raw(cache, ::Type{TypeName}, d, init) name = raise_recursive(d[:data][2], cache, init) name = isdefined(__deserialized_types__, name) ? gensym() : name