diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-05 06:32:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-05 06:32:51 +0000 |
commit | 9d51f2b9d44563a57aae5e5989c80dda8cde1d58 (patch) | |
tree | 745bf6d782d5106853716d53d1cf25c76ed63a59 /clang/lib/Parse/Parser.cpp | |
parent | 94fc8063b4e4635bd18ea2b9cf76b4a71685b5ca (diff) | |
download | bcm5719-llvm-9d51f2b9d44563a57aae5e5989c80dda8cde1d58.tar.gz bcm5719-llvm-9d51f2b9d44563a57aae5e5989c80dda8cde1d58.zip |
Fix handling of implicit int, resolving PR2012 and reverting (and
subsuming) my patch for PR1999.
llvm-svn: 49251
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 76091245b55..cd99fc04ebe 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -467,7 +467,7 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) { // If this is C90 and the declspecs were completely missing, fudge in an // implicit int. We do this here because this is the only place where // declaration-specifiers are completely optional in the grammar. - if (getLang().isC90() && !D.getDeclSpec().getParsedSpecifiers() == 0) { + if (getLang().ImplicitInt && D.getDeclSpec().getParsedSpecifiers() == 0) { const char *PrevSpec; D.getDeclSpec().SetTypeSpecType(DeclSpec::TST_int, D.getIdentifierLoc(), PrevSpec); |