r322918 - [Refactor] Use enum instead of magic number in handleX86ForceAlignArgPointerAttr, NFC
Hongbin Zheng via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 18 19:07:00 PST 2018
Author: ether
Date: Thu Jan 18 19:07:00 2018
New Revision: 322918
URL: http://llvm.org/viewvc/llvm-project?rev=322918&view=rev
Log:
[Refactor] Use enum instead of magic number in handleX86ForceAlignArgPointerAttr, NFC
Differential revision: https://reviews.llvm.org/D42227
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=322918&r1=322917&r2=322918&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu Jan 18 19:07:00 2018
@@ -5554,7 +5554,7 @@ static void handleX86ForceAlignArgPointe
// Attribute can only be applied to function types.
if (!isa<FunctionDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << /* function */0;
+ << Attr.getName() << ExpectedFunction;
return;
}
More information about the cfe-commits
mailing list