[libc-commits] [PATCH] D90800: [libc] Fix WrapperGen seeing no arguments as a void argument.
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Nov 5 10:10:51 PST 2020
michaelrj updated this revision to Diff 303158.
michaelrj marked an inline comment as done.
michaelrj added a comment.
change continue to break
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90800/new/
https://reviews.llvm.org/D90800
Files:
libc/utils/tools/WrapperGen/Main.cpp
Index: libc/utils/tools/WrapperGen/Main.cpp
===================================================================
--- libc/utils/tools/WrapperGen/Main.cpp
+++ libc/utils/tools/WrapperGen/Main.cpp
@@ -47,6 +47,11 @@
for (size_t i = 0; i < ArgsList.size(); ++i) {
llvm::Record *ArgType = ArgsList[i]->getValueAsDef("ArgType");
auto TypeName = Indexer.getTypeAsString(ArgType);
+
+ if (TypeName.compare("void") == 0) {
+ break;
+ }
+
OS << TypeName << " " << ArgPrefix << i;
CallArgs << ArgPrefix << i;
if (i < ArgsList.size() - 1) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90800.303158.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20201105/5b94030f/attachment.bin>
More information about the libc-commits
mailing list