From: Chris Lattner Date: Mon, 23 Jul 2007 22:23:52 +0000 (+0000) Subject: Fix a scoping bug that apple gcc doesn't catch for some reason. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f11ccfcd7b1ad777d940503432b565dce624f4b6;p=clang Fix a scoping bug that apple gcc doesn't catch for some reason. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40450 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index 96d9c9ec53..25ddb03d48 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -1695,12 +1695,13 @@ void Preprocessor::HandleIncludeDirective(Token &IncludeTok, 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 file coming from a macro expansion. In this