File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -372,19 +372,19 @@ end
372
372
function replace_coretypes_list! (list:: AbstractVector ; rev:: Bool )
373
373
function rep (@nospecialize (x), rev:: Bool )
374
374
if rev
375
- if isa (x, SSAValue)
376
- return Core. SSAValue (x. id)
377
- elseif isa (x, SlotNumber)
378
- return Core. SlotNumber (x. id)
375
+ isa (x, SSAValue) && return Core. SSAValue (x. id)
376
+ isa (x, SlotNumber) && return Core. SlotNumber (x. id)
377
+ return x
378
+ else
379
+ isa (x, Core. SSAValue) && return SSAValue (x. id)
380
+ isa (x, Core. SlotNumber) && return SlotNumber (x. id)
381
+ @static if VERSION ≥ v " 1.10.0-DEV.631"
382
+ isa (x, Core. TypedSlot) && return SlotNumber (x. id)
383
+ else
384
+ isa (x, Core. Compiler. TypedSlot) && return SlotNumber (x. id)
379
385
end
380
386
return x
381
387
end
382
- if isa (x, Core. SSAValue)
383
- return SSAValue (x. id)
384
- elseif isa (x, Core. SlotNumber) || isa (x, Core. TypedSlot)
385
- return SlotNumber (x. id)
386
- end
387
- return x
388
388
end
389
389
390
390
for (i, stmt) in enumerate (list)
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ let TT = Union{UInt8, Int8}
307
307
end
308
308
309
309
# issue #92
310
- let x = Core. TypedSlot ( 1 , Any )
310
+ let x = Core. SlotNumber ( 1 )
311
311
f (x) = objectid (x)
312
312
@test isa (@interpret (f (x)), UInt)
313
313
end
You can’t perform that action at this time.
0 commit comments