[PATCH] D85783: multivalue result types
Samuel Kostial via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 14:17:30 PDT 2020
sammax created this revision.
sammax added reviewers: sbc100, tlively.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
sammax requested review of this revision.
Herald added a subscriber: aheejin.
Emit all result types of a multivalue func type
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85783
Files:
lld/wasm/WriterUtils.cpp
Index: lld/wasm/WriterUtils.cpp
===================================================================
--- lld/wasm/WriterUtils.cpp
+++ lld/wasm/WriterUtils.cpp
@@ -119,8 +119,8 @@
writeValueType(os, paramType, "param type");
}
writeUleb128(os, sig.Returns.size(), "result Count");
- if (sig.Returns.size()) {
- writeValueType(os, sig.Returns[0], "result type");
+ for (ValType returnType : sig.Returns) {
+ writeValueType(os, returnType, "result type");
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85783.284892.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/911f7271/attachment.bin>
More information about the llvm-commits
mailing list