From 0d48bf9eb5eee5b75b413098c84b5170ca84a62e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Mar 2009 23:17:04 +0000 Subject: [PATCH] pull a nested conditional + comment out into its own variable, no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67128 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 7eedd0b07f..0b7c33ff98 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1845,13 +1845,13 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, isVirtualOkay = (SC != FunctionDecl::Static); } else { + bool HasPrototype = + getLangOptions().CPlusPlus || + (D.getNumTypeObjects() && D.getTypeObject(0).Fun.hasPrototype); + NewFD = FunctionDecl::Create(Context, DC, D.getIdentifierLoc(), - Name, R, SC, isInline, - /*hasPrototype=*/ - (getLangOptions().CPlusPlus || - (D.getNumTypeObjects() && - D.getTypeObject(0).Fun.hasPrototype)), + Name, R, SC, isInline, HasPrototype, // FIXME: Move to DeclGroup... D.getDeclSpec().getSourceRange().getBegin()); } -- 2.40.0