Skip to content

Commit 6b3fb1e

Browse files
committed
Refactor error logging for unknown function users
1 parent 57e61be commit 6b3fb1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/llvm/transforms.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,9 +2529,9 @@ function removeDeadArgs!(mod::LLVM.Module, tm::LLVM.TargetMachine, post_gc_fixup
25292529
u = LLVM.user(u)
25302530
if !isa(u, LLVM.CallInst)
25312531
msg = sprint() do io
2532-
println("Unknown user of fn: ", string(u))
2533-
println("fn: ", string(fn))
2534-
println("mod: ", string(parent(fn)))
2532+
println(io, "Unknown user of fn: ", string(u))
2533+
println(io, "fn: ", string(fn))
2534+
println(io, "mod: ", string(parent(fn)))
25352535
end
25362536
throw(AssertionError(msg))
25372537
end

0 commit comments

Comments
 (0)