diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-08-06 06:50:17 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-08-06 06:50:17 +0000 |
commit | 2667f1d4093f5fcfd2076080b3b7ffcf23fcbdd6 (patch) | |
tree | 16703eebd3b0a113fd4a0465a233f008cd9851ea /clang/lib/Parse/ParseStmt.cpp | |
parent | 60ecc522e0db0ffc32f15f366af8d81d5a9ac14c (diff) | |
download | bcm5719-llvm-2667f1d4093f5fcfd2076080b3b7ffcf23fcbdd6.tar.gz bcm5719-llvm-2667f1d4093f5fcfd2076080b3b7ffcf23fcbdd6.zip |
Remove ElseScope which is also dead code now.
llvm-svn: 110433
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index baf8488e741..1136be006ff 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -667,13 +667,7 @@ Parser::OwningStmtResult Parser::ParseIfStatement(AttributeList *Attr) { ParseScope InnerScope(this, Scope::DeclScope, C99orCXX && Tok.isNot(tok::l_brace)); - // Regardless of whether or not InnerScope actually pushed a scope, set the - // ElseScope flag for the innermost scope so we can diagnose use of the if - // condition variable in C++. - unsigned OldFlags = getCurScope()->getFlags(); - getCurScope()->setFlags(OldFlags | Scope::ElseScope); ElseStmt = ParseStatement(); - getCurScope()->setFlags(OldFlags); // Pop the 'else' scope if needed. InnerScope.Exit(); |