aboutsummaryrefslogtreecommitdiff
path: root/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-23 22:23:52 +0000
committerChris Lattner <sabre@nondot.org>2007-07-23 22:23:52 +0000
commitf11ccfcd7b1ad777d940503432b565dce624f4b6 (patch)
tree0c28d23d14f6c86a3cdfc0f59b234c359165a782 /Lex/Preprocessor.cpp
parent8a87e57beb96212ee61dc08a5f691cd7f7710703 (diff)
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
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r--Lex/Preprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
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 <foo/bar.h> file coming from a macro expansion. In this