@@ -369,6 +369,15 @@ function translate!!(var::IRVar, line::Core.SlotNumber,
369
369
return Instruction (func, input, output)
370
370
end
371
371
372
+ function translate!! (var:: IRVar , line:: NTuple{N, Symbol} ,
373
+ bindings:: Bindings , isconst:: Bool , ir) where {N}
374
+ # for syntax (; x, y, z), see Turing.jl#1873
375
+ func = identity
376
+ input = (bind_var! (line, bindings, ir),)
377
+ output = bind_var! (var, bindings, ir)
378
+ return Instruction (func, input, output)
379
+ end
380
+
372
381
function translate!! (var:: IRVar , line:: Core.TypedSlot ,
373
382
bindings:: Bindings , isconst:: Bool , ir)
374
383
input_box = bind_var! (Core. SlotNumber (line. id), bindings, ir)
@@ -437,7 +446,7 @@ function translate!!(var::IRVar, line::Expr,
437
446
end
438
447
end
439
448
440
- function translate!! (var, line, bindings, ir)
449
+ function translate!! (var, line, bindings, isconst, ir)
441
450
@error " Unknown IR code: " typeof (var) var typeof (line) line
442
451
throw (ErrorException (" Unknown IR code" ))
443
452
end
0 commit comments