Skip to content

Commit 6dc5d2f

Browse files
serenity4mcabbott
andauthored
Import typesof from Base instead of InteractiveUtils (#1569)
* Import `typesof` from Base instead of InteractiveUtils `typesof` was defined in Base, and simply used by InteractiveUtils. A recent commit removed the `using` from InteractiveUtils, breaking the import. * Bump version * qualify IRTools.Variable to silence a warning --------- Co-authored-by: Cédric Belmant <[email protected]> Co-authored-by: Michael Abbott <[email protected]>
1 parent 1b914d9 commit 6dc5d2f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Zygote"
22
uuid = "e88e6eb3-aa80-5325-afca-941959d7151f"
3-
version = "0.7.6"
3+
version = "0.7.7"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/compiler/interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using InteractiveUtils
2-
using InteractiveUtils: typesof
2+
using Base: typesof
33
using Core: Typeof
44
import Base: copy!, IdSet
55
import Base.Broadcast: broadcasted, materialize!

src/compiler/reverse.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using IRTools: IR, Variable, Pipe, xcall, var, prewalk, postwalk,
1+
using IRTools: IRTools, IR, Variable, Pipe, xcall, var, prewalk, postwalk,
22
blocks, predecessors, successors, argument!, arguments, branches,
33
insertafter!, finish, expand!, prune!, substitute!, substitute,
44
block, block!, branch!, return!, stmt, meta
@@ -250,7 +250,7 @@ Base.show(io::IO, x::Alpha) = print(io, "@", x.id)
250250

251251
alpha(x) = x
252252
alpha(x::Variable) = Alpha(x.id)
253-
Variable(a::Alpha) = Variable(a.id)
253+
IRTools.Variable(a::Alpha) = Variable(a.id)
254254

255255
sig(b::IRTools.Block) = unique([arg for br in branches(b) for arg in br.args if arg isa Variable])
256256
sig(pr::Primal) = Dict(b.id => sig(b) for b in blocks(pr.ir))

0 commit comments

Comments
 (0)