Skip to content

Commit

Permalink
compiler: some minor NFC clean-ups (#46835)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored and pull[bot] committed Aug 21, 2023
1 parent f5e4449 commit 15541cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions base/compiler/bootstrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

time() = ccall(:jl_clock_now, Float64, ())

let
world = get_world_counter()
interp = NativeInterpreter(world)
let interp = NativeInterpreter()

analyze_escapes_tt = Tuple{typeof(analyze_escapes), IRCode, Int, Bool, typeof(null_escape_cache)}
fs = Any[
Expand Down
2 changes: 1 addition & 1 deletion base/compiler/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ mutable struct OptimizationState
# This method is mostly used for unit testing the optimizer
inlining = InliningState(params,
nothing,
WorldView(code_cache(interp), get_world_counter()),
WorldView(code_cache(interp), get_world_counter(interp)),
interp)
return new(linfo, src, nothing, stmt_info, mod,
sptypes, slottypes, inlining, nothing)
Expand Down
2 changes: 1 addition & 1 deletion base/compiler/ssair/verify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ end
if !isdefined(@__MODULE__, Symbol("@verify_error"))
macro verify_error(arg)
arg isa String && return esc(:(print && println(stderr, $arg)))
(arg isa Expr && arg.head === :string) || error("verify_error macro expected a string expression")
isexpr(arg, :string) || error("verify_error macro expected a string expression")
pushfirst!(arg.args, GlobalRef(Core, :stderr))
pushfirst!(arg.args, :println)
arg.head = :call
Expand Down

0 comments on commit 15541cd

Please sign in to comment.