]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 28 May 2015 23:38:53 +0000 (23:38 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 28 May 2015 23:38:53 +0000 (23:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 31fe05592f008c84285eb0b13918291520198078..1d0415990e1b38e0a1614bd4dd70437735251393 100644 (file)
@@ -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)) {