Skip to content

Commit eb2d838

Browse files
authored
Minor fixes for IRInterp in presence of ABI overrides (#59671)
Encountered in DAECompiler, when performing IR interpretation on IR that contains ABI overrides.
1 parent f39ec3d commit eb2d838

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Compiler/src/inferencestate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ end
867867

868868
function IRInterpretationState(interp::AbstractInterpreter,
869869
codeinst::CodeInstance, mi::MethodInstance, argtypes::Vector{Any}, world::UInt)
870-
@assert codeinst.def === mi "method instance is not synced with code instance"
870+
@assert get_ci_mi(codeinst) === mi "method instance is not synced with code instance"
871871
src = @atomic :monotonic codeinst.inferred
872872
if isa(src, String)
873873
src = _uncompressed_ir(codeinst, src)

Compiler/src/ssair/irinterp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function concrete_eval_invoke(interp::AbstractInterpreter, ci::CodeInstance, arg
1818
end
1919
return Pair{Any,Tuple{Bool,Bool}}(Const(value), (true, true))
2020
else
21-
mi = ci.def
21+
mi = get_ci_mi(ci)
2222
if is_constprop_edge_recursed(mi, parent)
2323
return Pair{Any,Tuple{Bool,Bool}}(nothing, (is_nothrow(effects), is_noub(effects)))
2424
end

0 commit comments

Comments
 (0)