pull a nested conditional + comment out into its own variable,

no functionality change.

llvm-svn: 67128
This commit is contained in:
Chris Lattner 2009-03-17 23:17:04 +00:00
parent 9363e3106e
commit 441914ea5b
1 changed files with 5 additions and 5 deletions

View File

@ -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());
}