diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-27 16:30:46 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-27 16:30:46 +0000 |
commit | 2dfb03f3629a6c0899a7dca3b784173a85da5659 (patch) | |
tree | 71d33a460db10e7fb550c22ecdf9c18cee6801bf | |
parent | ce9b9abb154e8b16ca69ff9b8a7bf03af964ed86 (diff) | |
download | bcm5719-llvm-2dfb03f3629a6c0899a7dca3b784173a85da5659.tar.gz bcm5719-llvm-2dfb03f3629a6c0899a7dca3b784173a85da5659.zip |
Removed a string literal for a diagnostic, and updated the diagnostic to not manually quote. No functional changes intended.
llvm-svn: 198076
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 461d46736ea..c84404ef009 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -2362,7 +2362,7 @@ def err_mode_not_primitive : Error< def err_mode_wrong_type : Error< "type of machine mode does not match type of base type">; def err_attr_wrong_decl : Error< - "'%0' attribute invalid on this declaration, requires typedef or value">; + "%0 attribute invalid on this declaration, requires typedef or value">; def warn_attribute_nonnull_no_pointers : Warning< "'nonnull' attribute applied to function with no pointer arguments">, InGroup<IgnoredAttributes>; diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 56e8725ab6f..aaaa2b3552c 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -2959,7 +2959,7 @@ static void handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) { OldTy = VD->getType(); else { S.Diag(D->getLocation(), diag::err_attr_wrong_decl) - << "mode" << Attr.getRange(); + << Attr.getName() << Attr.getRange(); return; } |