Skip to content

Commit 1c8f77d

Browse files
committed
Tweaks to build_callable and docs
1 parent 0962608 commit 1c8f77d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/internals.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Libtask.BasicBlockCode
1414
Libtask.opaque_closure
1515
Libtask.misty_closure
1616
Libtask.optimise_ir!
17+
Libtask.build_callable
1718
```

src/copyable_task.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ will derive it from scratch (derive the IR + compile it etc).
7474
function build_callable(sig::Type{<:Tuple})
7575
key = CacheKey(Base.get_world_counter(), sig)
7676
if haskey(mc_cache, key)
77-
v = fresh_copy(mc_cache[key])
78-
return v
77+
return fresh_copy(mc_cache[key])
7978
else
8079
ir = Base.code_ircode_by_type(sig)[1][1]
8180
bb, refs, types = derive_copyable_task_ir(BBCode(ir))

0 commit comments

Comments
 (0)