]> granicus.if.org Git - clang/commitdiff
Renaming yet another diagnostic to not conflict; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 12 Feb 2019 13:19:02 +0000 (13:19 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 12 Feb 2019 13:19:02 +0000 (13:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353839 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp

index 9f6763671f7e25a8746710be1cd73aacaf4c93e4..71f205de3497d599a211028bbbe38aeec5506f27 100644 (file)
@@ -3023,7 +3023,7 @@ def warn_thread_attribute_decl_not_lockable : Warning<
 def warn_thread_attribute_decl_not_pointer : Warning<
   "%0 only applies to pointer types; type here is %1">,
   InGroup<ThreadSafetyAttributes>, DefaultIgnore;
-def err_attribute_argument_out_of_bounds : Error<
+def err_attribute_argument_out_of_bounds_extra_info : Error<
   "%0 attribute parameter %1 is out of bounds: "
   "%plural{0:no parameters to index into|"
   "1:can only be 1, since there is one parameter|"
index b607c2ce858080a9ba7859a1938d77a8300b191a..859ef80807c1e63d283e342c41da42cad65b65b4 100644 (file)
@@ -716,7 +716,8 @@ static void checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D,
         uint64_t ParamIdxFromOne = ArgValue.getZExtValue();
         uint64_t ParamIdxFromZero = ParamIdxFromOne - 1;
         if (!ArgValue.isStrictlyPositive() || ParamIdxFromOne > NumParams) {
-          S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
+          S.Diag(AL.getLoc(),
+                 diag::err_attribute_argument_out_of_bounds_extra_info)
               << AL << Idx + 1 << NumParams;
           continue;
         }