Skip to content

Commit 455d4c9

Browse files
committed
Revert "Always set result.src to the result of transform_result_for_cache (#58083)"
This reverts commit 885d4f4.
1 parent 55b79ee commit 455d4c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Compiler/src/typeinfer.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ function finish!(interp::AbstractInterpreter, caller::InferenceState, validation
127127
if inferred_result !== nothing
128128
uncompressed = inferred_result
129129
debuginfo = get_debuginfo(inferred_result)
130-
# Inlining may fast-path the global cache via `VolatileInferenceResult`, so store it back here
131-
result.src = inferred_result
132130
end
133131
# TODO: do we want to augment edges here with any :invoke targets that we got from inlining (such that we didn't have a direct edge to it already)?
134132
if inferred_result isa CodeInfo
133+
result.src = inferred_result
135134
if may_compress(interp)
136135
nslots = length(inferred_result.slotflags)
137136
resize!(inferred_result.slottypes::Vector{Any}, nslots)

0 commit comments

Comments
 (0)