[cfe-commits] r39288 - /cfe/cfe/trunk/Parse/ParseDecl.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:42:31 PDT 2007


Author: sabre
Date: Wed Jul 11 11:42:31 2007
New Revision: 39288

URL: http://llvm.org/viewvc/llvm-project?rev=39288&view=rev
Log:
structure bodies can't get scopes.

Modified:
    cfe/cfe/trunk/Parse/ParseDecl.cpp

Modified: cfe/cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseDecl.cpp?rev=39288&r1=39287&r2=39288&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseDecl.cpp Wed Jul 11 11:42:31 2007
@@ -493,9 +493,6 @@
     Diag(Tok, diag::ext_empty_struct_union_enum, 
          DeclSpec::getSpecifierName((DeclSpec::TST)TagType));
 
-  // Enter a scope to capture the struct declarations.
-  EnterScope(0);
-  
   // While we still have something to read, read the declarations in the struct.
   while (Tok.getKind() != tok::r_brace && 
          Tok.getKind() != tok::eof) {
@@ -571,8 +568,6 @@
     }
   }
   
-  ExitScope();
-  
   MatchRHSPunctuation(tok::r_brace, LBraceLoc);
   
   // If attributes exist after struct contents, parse them.





More information about the cfe-commits mailing list