Skip to content

Commit

Permalink
Merge pull request #188 from oscardssmith/delete-VERSION-stuff
Browse files Browse the repository at this point in the history
remove broken support for older Julia versions
  • Loading branch information
oxinabox authored Jul 25, 2023
2 parents 05810c2 + c40cc3f commit 3df2687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/codegen/reverse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,7 @@ function diffract_ir!(ir, ci, meth, sparams::Core.SimpleVector, nargs::Int, N::I
if length(succs) != 0
override = false
if has_terminator[active_bb]
terminator = compact[SSAValue(idx)]
terminator = VERSION < v"1.9.0-DEV.739" ? terminator : terminator.inst
terminator = compact[SSAValue(idx)].inst
compact[SSAValue(idx)] = nothing
override = true
end
Expand Down
8 changes: 2 additions & 6 deletions src/stage1/recurse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,9 @@ Base.getindex(c::Core.Compiler.IncrementalCompact, args...) = Core.Compiler.geti
Base.setindex!(c::Core.Compiler.IncrementalCompact, args...) = Core.Compiler.setindex!(c, args...)
Base.setindex!(urs::Core.Compiler.UseRef, args...) = Core.Compiler.setindex!(urs, args...)

VERSION >= v"1.10.0-DEV.552" && import Core.Compiler: VarState
import Core.Compiler: VarState
function sptypes(sparams)
return if VERSION>=v"1.10.0-DEV.552"
VarState[Core.Compiler.VarState.(sparams, false)...]
else
Any[sparams...]
end
VarState[Core.Compiler.VarState.(sparams, false)...]
end

function optic_transform(ci, args...)
Expand Down

0 comments on commit 3df2687

Please sign in to comment.