Skip to content

Commit 5bbffc4

Browse files
committed
Fix SPIRV byval workaround to avoid byval type mismatches.
1 parent 0cc9295 commit 5bbffc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spirv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function wrap_byval(@nospecialize(job::CompilerJob), mod::LLVM.Module, entry_f::
186186
attrs = parameter_attributes(wrapper_f, arg.codegen.i)
187187
if arg.cc == BITS_REF
188188
if LLVM.version() >= v"12"
189-
push!(attrs, TypeAttribute("byval", eltype(arg.codegen.typ); ctx))
189+
push!(attrs, TypeAttribute("byval", eltype(wrapper_types[arg.codegen.i]); ctx))
190190
else
191191
push!(attrs, EnumAttribute("byval", 0; ctx))
192192
end

0 commit comments

Comments
 (0)