File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11name = " GPUCompiler"
22uuid = " 61eb1bfa-7361-4325-ad38-22787b887f55"
3- version = " 1.6.0 "
3+ version = " 1.6.1 "
44authors = [" Tim Besard <tim.besard@gmail.com>" ]
55
66[deps ]
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ function lower_throw_extra!(mod::LLVM.Module)
8787 # remove the call
8888 nargs = length (parameters (f))
8989 call_args = arguments (call)
90- erase! (LLVM . parent (call), call)
90+ erase! (call)
9191
9292 # HACK: kill the exceptions' unused arguments
9393 for arg in call_args
Original file line number Diff line number Diff line change @@ -21,6 +21,22 @@ sink_gcn(i) = sink(i, Val(5))
2121 end
2222end
2323
24+ @testset " bounds errors" begin
25+ mod = @eval module $ (gensym ())
26+ function kernel ()
27+ Base. throw_boundserror (1 , 2 )
28+ return
29+ end
30+ end
31+
32+ @test @filecheck begin
33+ check " CHECK-NOT: {{julia_throw_boundserror_[0-9]+}}"
34+ check " CHECK: @gpu_report_exception"
35+ check " CHECK: @gpu_signal_exception"
36+ GCN. code_llvm (mod. kernel, Tuple{})
37+ end
38+ end
39+
2440end
2541
2642# ###########################################################################################
You can’t perform that action at this time.
0 commit comments