We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d3c49 commit 4b23662Copy full SHA for 4b23662
src/irgen.jl
@@ -713,10 +713,12 @@ function add_kernel_state!(mod::LLVM.Module)
713
elseif val isa LLVM.CallBase
714
# the function is being passed as an argument, which we'll just permit,
715
# because we expect to have rewritten the call down the line separately.
716
+ elseif val isa LLVM.StoreInst
717
+ # the function is being stored, which again we'll permit like before.
718
elseif val isa ConstantExpr
719
rewrite_uses!(val)
720
else
- error("Cannot rewrite unknown use of function: $val")
721
+ error("Cannot rewrite $(typeof(val)) use of function: $val")
722
end
723
724
0 commit comments