summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbin Zheng <etherzhhb@gmail.com>2018-01-19 03:07:00 +0000
committerHongbin Zheng <etherzhhb@gmail.com>2018-01-19 03:07:00 +0000
commit702ffea169d3b57d0e5b42dfceaf9500beac6806 (patch)
tree2d3f4b067efb152a7d876a3dffb28b05e7612d40
parentdc4b3e87f466982fe7f8a5a9a5b154c7f2b0a4a6 (diff)
downloadbcm5719-llvm-702ffea169d3b57d0e5b42dfceaf9500beac6806.tar.gz
bcm5719-llvm-702ffea169d3b57d0e5b42dfceaf9500beac6806.zip
[Refactor] Use enum instead of magic number in handleX86ForceAlignArgPointerAttr, NFC
Differential revision: https://reviews.llvm.org/D42227 llvm-svn: 322918
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 21fe46ad9dd..fdaf4b1fadd 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -5554,7 +5554,7 @@ static void handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D,
// 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;
}
OpenPOWER on IntegriCloud