Skip to content

Commit dd3a2b5

Browse files
authored
fix #572, handle exct on v1.10 properly (#567)
1 parent 5d3d80c commit dd3a2b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Cthulhu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function lookup_constproped_optimized(interp::CthulhuInterpreter, override::Infe
342342
# e.g. when we switch from constant-prop' unoptimized source
343343
src = CC.copy(opt.ir)
344344
rt = override.result
345-
exct = override.exc_result
345+
exct = @static hasfield(InferenceResult, :exc_result) ? override.exc_result : nothing
346346
infos = src.stmts.info
347347
slottypes = src.argtypes
348348
codeinf = opt.src

0 commit comments

Comments
 (0)