[libc-commits] [PATCH] D90800: [libc] Fix WrapperGen seeing no arguments as a void argument.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Nov 5 09:00:22 PST 2020


sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libc/utils/tools/WrapperGen/Main.cpp:51
+
+    if (TypeName.compare("void") == 0) {
+      continue;
----------------
May be check that the ArgsList.size() is zero? If zero, `break` out of the for loop, else report a descriptive error?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90800/new/

https://reviews.llvm.org/D90800



More information about the libc-commits mailing list