diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-28 23:39:14 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-28 23:39:14 +0000 |
commit | 5929ef2ee7c94dba046007065a198003bfcadd40 (patch) | |
tree | 831f47455dab84de4028552750bc7d80592b5533 /clang/lib/Parse/ParseDecl.cpp | |
parent | 12edeb08997ecb732c845b88418b7929d431bb05 (diff) | |
download | bcm5719-llvm-5929ef2ee7c94dba046007065a198003bfcadd40.tar.gz bcm5719-llvm-5929ef2ee7c94dba046007065a198003bfcadd40.zip |
Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h
Original log:
---------------------
Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped.
This fixes code such as:
enum e {x, y};
int f(enum {y, x} n) {
return 0;
}
This finally fixes PR5464 and PR5477.
---------------------
I also reverted r151641 which was enhancement on top of r151638.
llvm-svn: 151667
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 835a652910a..4d93eaf85d5 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -4226,8 +4226,6 @@ void Parser::ParseFunctionDeclarator(Declarator &D, ExprResult NoexceptExpr; ParsedType TrailingReturnType; - Actions.ActOnStartFunctionDeclarator(); - SourceLocation EndLoc; if (isFunctionDeclaratorIdentifierList()) { if (RequiresArg) |