From 3d82246f74bb26b99489f267d5be0dcd0d14f998 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Thu, 26 Oct 2023 22:46:19 +0900 Subject: [PATCH] adjust to JuliaLang/julia#51872 (#512) --- src/interpreter.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/interpreter.jl b/src/interpreter.jl index 8fc2cb01..a9db2a18 100644 --- a/src/interpreter.jl +++ b/src/interpreter.jl @@ -230,6 +230,14 @@ function CC.codeinst_to_ir(interp::CthulhuInterpreter, code::CodeInstance) end end +@static if VERSION ≥ v"1.11.0-DEV.737" +function CC.finish!(interp::CthulhuInterpreter, caller::InferenceState) + result = caller.result + result.src = create_cthulhu_source(result.src, result.ipo_effects) + return nothing +end +else function CC.finish!(interp::CthulhuInterpreter, caller::InferenceResult) caller.src = create_cthulhu_source(caller.src, caller.ipo_effects) end +end