Skip to content

Commit

Permalink
fix compilation world-age assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Feb 7, 2018
1 parent 2ca63e1 commit 74a34d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/typeinfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const COMPILER_TEMP_SYM = Symbol("#temp#")
# add the real backedges
function finalize_backedges(frame::InferenceState)
toplevel = !isa(frame.linfo.def, Method)
if !toplevel && frame.cached && frame.max_valid == typemax(UInt)
if !toplevel && (frame.cached || frame.parent !== nothing) && frame.max_valid == typemax(UInt)
caller = frame.linfo
for edges in frame.stmt_edges
i = 1
Expand Down
1 change: 1 addition & 0 deletions base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ setproperty!(x::Module, f::Symbol, v) = setfield!(x, f, v)
getproperty(x::Type, f::Symbol) = getfield(x, f)
setproperty!(x::Type, f::Symbol, v) = setfield!(x, f, v)

function include_relative end
function include(mod::Module, path::AbstractString)
local result
if INCLUDE_STATE === 1
Expand Down

0 comments on commit 74a34d2

Please sign in to comment.