Skip to content

Commit 974e859

Browse files
committed
Make some ifs static to appease Revise.
1 parent 1b42f36 commit 974e859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jlgen.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373

7474
# on 1.11 (JuliaLang/julia#52572, merged as part of JuliaLang/julia#52233) we can use
7575
# Julia's cached method lookup to simply look up method instances at run time.
76-
if VERSION >= v"1.11.0-DEV.1552"
76+
@static if VERSION >= v"1.11.0-DEV.1552"
7777

7878
# XXX: version of Base.method_instance that uses a function type
7979
@inline function methodinstance(@nospecialize(ft::Type), @nospecialize(tt::Type),
@@ -395,7 +395,7 @@ CC.InferenceParams(interp::GPUInterpreter) = interp.inf_params
395395
CC.OptimizationParams(interp::GPUInterpreter) = interp.opt_params
396396
#=CC.=#get_inference_world(interp::GPUInterpreter) = interp.world
397397
CC.get_inference_cache(interp::GPUInterpreter) = interp.inf_cache
398-
if HAS_INTEGRATED_CACHE
398+
@static if HAS_INTEGRATED_CACHE
399399
CC.cache_owner(interp::GPUInterpreter) = interp.token
400400
else
401401
CC.code_cache(interp::GPUInterpreter) = WorldView(interp.code_cache, interp.world)

0 commit comments

Comments
 (0)