diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-23 16:23:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-23 16:23:13 +0000 |
commit | be109b3e768b70f9efb106d25d6b5a2c72c5a9b8 (patch) | |
tree | bc437157be90c88d16db10e889293de8fb05bfe3 /lib/Parse/Parser.cpp | |
parent | 562c4d90418996c927f43e89250570d9967d6ecc (diff) |
Handle any undeclared parameters in a K&R-style function with a
special action, inside function prototype scope. This avoids confusion
when we try to inject these parameters into the scope of the function
body before the function itself has been added to the surrounding
scope. Fixes <rdar://problem/6097326>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 6ae3bf038f..7e1cef950f 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -674,6 +674,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) { } // The actions module must verify that all arguments were declared. + Actions.ActOnFinishKNRParamDeclarations(CurScope, D); } |