From f97dbcb4ba9c16814a49b19fc192d95c8185d743 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Jul 2007 22:23:52 +0000 Subject: [PATCH] Fix a scoping bug that apple gcc doesn't catch for some reason. llvm-svn: 40450 --- clang/Lex/Preprocessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index 96d9c9ec5369..25ddb03d48a7 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/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