summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-05-28 23:38:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-05-28 23:38:53 +0000
commiteec7cb17943ef22451e33204ddeca1d58ecfc9fa (patch)
tree498e8eca8c9476f9ad4450746b8140c7930aa491
parent111f5d88fb9153261a52fc666786d828106ff887 (diff)
downloadbcm5719-llvm-eec7cb17943ef22451e33204ddeca1d58ecfc9fa.tar.gz
bcm5719-llvm-eec7cb17943ef22451e33204ddeca1d58ecfc9fa.zip
Remove dead code.
llvm-svn: 238526
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 31fe05592f0..1d0415990e1 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3302,11 +3302,10 @@ static void handleGNUInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) {
static void handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) {
if (hasDeclarator(D)) return;
- const FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
// Diagnostic is emitted elsewhere: here we store the (valid) Attr
// in the Decl node for syntactic reasoning, e.g., pretty-printing.
CallingConv CC;
- if (S.CheckCallingConvAttr(Attr, CC, FD))
+ if (S.CheckCallingConvAttr(Attr, CC, /*FD*/nullptr))
return;
if (!isa<ObjCMethodDecl>(D)) {
OpenPOWER on IntegriCloud