forked from OSchip/llvm-project
Fix a scoping bug that apple gcc doesn't catch for some reason.
llvm-svn: 40450
This commit is contained in:
parent
0a75315d35
commit
f97dbcb4ba
|
@ -1695,12 +1695,13 @@ void Preprocessor::HandleIncludeDirective(Token &IncludeTok,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case tok::angle_string_literal:
|
case tok::angle_string_literal:
|
||||||
case tok::string_literal:
|
case tok::string_literal: {
|
||||||
FilenameBuffer.resize(FilenameTok.getLength());
|
FilenameBuffer.resize(FilenameTok.getLength());
|
||||||
FilenameStart = &FilenameBuffer[0];
|
FilenameStart = &FilenameBuffer[0];
|
||||||
unsigned Len = getSpelling(FilenameTok, FilenameStart);
|
unsigned Len = getSpelling(FilenameTok, FilenameStart);
|
||||||
FilenameEnd = FilenameStart+Len;
|
FilenameEnd = FilenameStart+Len;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case tok::less:
|
case tok::less:
|
||||||
// This could be a <foo/bar.h> file coming from a macro expansion. In this
|
// This could be a <foo/bar.h> file coming from a macro expansion. In this
|
||||||
|
|
Loading…
Reference in New Issue