diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2019-02-12 13:04:11 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-02-12 13:04:11 +0000 |
commit | e0dc1a910866c987598a323e2c64bae9166a3ba7 (patch) | |
tree | 739556cb15a903d754abed113b384ddf922b6184 | |
parent | 4e412465b9a2120e1889caf0d668dae02cdab9ec (diff) | |
download | clang-e0dc1a910866c987598a323e2c64bae9166a3ba7.tar.gz |
Fixing a typo; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353837 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index e342e3ade0..359131c860 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2527,7 +2527,7 @@ def err_attribute_argument_n_type : Error< def err_attribute_argument_type : Error< "%0 attribute requires %select{int or bool|an integer " "constant|a string|an identifier}1">; -def err_attribute_argument_outof_range : Error< +def err_attribute_argument_out_of_range : Error< "%0 attribute requires integer constant between %1 and %2 inclusive">; def err_init_priority_object_attr : Error< "can only use 'init_priority' attribute on file-scope definitions " diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 7f0ccdc6e7..c17263167c 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1118,7 +1118,7 @@ static void handlePassObjectSizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { // __builtin_object_size. So, it has the same constraints as that second // argument; namely, it must be in the range [0, 3]. if (Type > 3) { - S.Diag(E->getBeginLoc(), diag::err_attribute_argument_outof_range) + S.Diag(E->getBeginLoc(), diag::err_attribute_argument_out_of_range) << AL << 0 << 3 << E->getSourceRange(); return; } @@ -3299,7 +3299,7 @@ static void handleInitPriorityAttr(Sema &S, Decl *D, const ParsedAttr &AL) { } if (prioritynum < 101 || prioritynum > 65535) { - S.Diag(AL.getLoc(), diag::err_attribute_argument_outof_range) + S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_range) << E->getSourceRange() << AL << 101 << 65535; AL.setInvalid(); return; @@ -6434,7 +6434,7 @@ static void handleFortifyStdLib(Sema &S, Decl *D, const ParsedAttr &AL) { if (BOSType > 3) { S.Diag(AL.getArgAsExpr(0)->getBeginLoc(), - diag::err_attribute_argument_outof_range) + diag::err_attribute_argument_out_of_range) << AL << 0 << 3; return; } |