From: Aaron Ballman Date: Mon, 2 Dec 2013 15:31:50 +0000 (+0000) Subject: The FieldDecl is already covered by the ValueDecl case, so it is being removed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ecbe1b29acada13353d0085f539ce6cba9887d4;p=clang The FieldDecl is already covered by the ValueDecl case, so it is being removed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196110 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 200772940d..d442afd911 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -49,8 +49,6 @@ static const FunctionType *getFunctionType(const Decl *D, QualType Ty; if (const ValueDecl *decl = dyn_cast(D)) Ty = decl->getType(); - else if (const FieldDecl *decl = dyn_cast(D)) - Ty = decl->getType(); else if (const TypedefNameDecl* decl = dyn_cast(D)) Ty = decl->getUnderlyingType(); else