Skip to content

Commit 7c72b3d

Browse files
gbaraldiclaude
andcommitted
Fix @dispose: tm is not a managed resource, just pass to run!
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 369d6eb commit 7c72b3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gcn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function finish_ir!(
6464
# optimize after address space rewriting: propagate addrspace(4) through
6565
# the addrspacecast chains, then clean up newly-exposed opportunities
6666
tm = llvm_machine(job.config.target)
67-
@dispose pb=NewPMPassBuilder() tm begin
67+
@dispose pb=NewPMPassBuilder() begin
6868
add!(pb, NewPMFunctionPassManager()) do fpm
6969
add!(fpm, InferAddressSpacesPass())
7070
add!(fpm, SROAPass())

0 commit comments

Comments
 (0)