Renaming this diagnostic to not conflict with another; NFC.

Amends r353837 which renamed the diagnostics to conflict.

llvm-svn: 353838
This commit is contained in:
Aaron Ballman 2019-02-12 13:13:35 +00:00
parent 52c9ad2001
commit 76126c01b0
2 changed files with 2 additions and 2 deletions

View 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_range : Error<
def err_attribute_argument_out_of_bounds : 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|"

View File

@ -716,7 +716,7 @@ 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_range)
S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
<< AL << Idx + 1 << NumParams;
continue;
}