[PATCH] D115809: [ASTMatchers] Make ParamIndex unsigned.

Felix Berger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 15 10:37:05 PST 2021


flx created this revision.
flx added a reviewer: sammccall.
Herald added a subscriber: arphaman.
flx requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This fixes a compiler error/warning in
https://lab.llvm.org/buildbot/#/builders/36/builds/15377.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115809

Files:
  clang/include/clang/ASTMatchers/ASTMatchers.h


Index: clang/include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- clang/include/clang/ASTMatchers/ASTMatchers.h
+++ clang/include/clang/ASTMatchers/ASTMatchers.h
@@ -4872,7 +4872,7 @@
     }
   }
 
-  int ParamIndex = 0;
+  unsigned ParamIndex = 0;
   bool Matched = false;
   unsigned NumArgs = Node.getNumArgs();
   if (FProto && FProto->isVariadic())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115809.394602.patch
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211215/83eb9b9b/attachment.bin>


More information about the cfe-commits mailing list