Skip to content

Commit 6c56ad1

Browse files
authored
Revert "use isdefinedglobal instead of isdefined" (#136)
This reverts commit 5736a50. There doesn't seem to be any explanation for this change, and it breaks on old versions.
1 parent 5736a50 commit 6c56ad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packagedef.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ Base.Experimental.@optlevel 1
22

33
using Core: SimpleVector, MethodTable
44
using Core.IR: CodeInfo, GotoIfNot, GotoNode, IR, MethodInstance, ReturnNode
5-
@static if isdefinedglobal(Core.IR, :EnterNode)
5+
@static if isdefined(Core.IR, :EnterNode)
66
using Core.IR: EnterNode
77
end
88
using .CC:
99
BasicBlock, CFG,
1010
compute_basic_blocks, construct_domtree, construct_postdomtree,
1111
nearest_common_dominator, postdominates
1212

13-
@static if isdefinedglobal(CC, :IRShow)
13+
@static if isdefined(CC, :IRShow)
1414
using .CC: IRShow
1515
else
1616
using Base: IRShow

0 commit comments

Comments
 (0)