[cfe-commits] r40450 - /cfe/trunk/Lex/Preprocessor.cpp

Chris Lattner sabre at nondot.org
Mon Jul 23 15:23:52 PDT 2007


Author: lattner
Date: Mon Jul 23 17:23:52 2007
New Revision: 40450

URL: http://llvm.org/viewvc/llvm-project?rev=40450&view=rev
Log:
Fix a scoping bug that apple gcc doesn't catch for some reason.

Modified:
    cfe/trunk/Lex/Preprocessor.cpp

Modified: cfe/trunk/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Lex/Preprocessor.cpp?rev=40450&r1=40449&r2=40450&view=diff

==============================================================================
--- cfe/trunk/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/Lex/Preprocessor.cpp Mon Jul 23 17:23:52 2007
@@ -1695,12 +1695,13 @@
     return;
   
   case tok::angle_string_literal:
-  case tok::string_literal:
+  case tok::string_literal: {
     FilenameBuffer.resize(FilenameTok.getLength());
     FilenameStart = &FilenameBuffer[0];
     unsigned Len = getSpelling(FilenameTok, FilenameStart);
     FilenameEnd = FilenameStart+Len;
     break;
+  }
     
   case tok::less:
     // This could be a <foo/bar.h> file coming from a macro expansion.  In this





More information about the cfe-commits mailing list