From 9ecbe1b29acada13353d0085f539ce6cba9887d4 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 2 Dec 2013 15:31:50 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDeclAttr.cpp | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.40.0