Skip to content

Commit ae5c72e

Browse files
committed
[RemoteAST] Fix function generation to form type from multiple params
If function type has multiple parameters make sure that correct tuple type is formed before constructing function type.
1 parent 5399e73 commit ae5c72e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/RemoteAST/RemoteAST.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ class RemoteASTTypeBuilder {
342342
if (inOutArgs[i]) arg = InOutType::get(arg);
343343
elts.push_back(arg);
344344
}
345+
input = TupleType::get(elts, Ctx);
345346
}
346347

347348
return FunctionType::get(input, output, einfo);

0 commit comments

Comments
 (0)