Fix a scoping bug that apple gcc doesn't catch for some reason.

llvm-svn: 40450
This commit is contained in:
Chris Lattner 2007-07-23 22:23:52 +00:00
parent 0a75315d35
commit f97dbcb4ba
1 changed files with 2 additions and 1 deletions

View File

@ -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