Skip to content

Commit f56bdfb

Browse files
authored
Merge pull request #2 from arhik/main
missing `where` args
2 parents c941403 + 2c11348 commit f56bdfb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/codegen/computeBlock.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function computeBlock(scope, islaunch, wgSize, wgCount, fname, fargs)
3737
fn = inferExpr(childScope, fname)
3838
fa = map(x -> inferExpr(childScope, x), fargs)
3939
fb = map(x -> inferExpr(childScope, x), fbody)
40-
return ComputeBlock(fn, fa, WGPUVariable[], fb, childScope)
40+
ta = map(x -> inferExpr(childScope, x), Targs)
41+
return ComputeBlock(fn, fa, ta, fb, childScope)
4142
end
4243

4344

src/codegen/transpile.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ function transpile(scope::Scope, computeBlk::ComputeBlock)
7979
fn = transpile(scope::Scope, computeBlk.fname)
8080
fa = map(x -> transpile(scope, x), computeBlk.fargs)
8181
fb = map(x -> transpile(scope, x), computeBlk.fbody)
82-
return Expr(:function, Expr(:call, fn, fa...), quote $(fb...) end) |> MacroTools.striplines
82+
ta = map(x -> transpile(scope, x), computeBlk.Targs)
83+
return Expr(:function, Expr(:where, Expr(:call, fn, fa...), ta...), quote $(fb...) end) |> MacroTools.striplines
8384
end

0 commit comments

Comments
 (0)