Fix a bug that I noticed by inspection.

llvm-svn: 63094
This commit is contained in:
Chris Lattner 2009-01-27 05:34:03 +00:00
parent 6d61c3e6df
commit bf648a3a63
2 changed files with 10 additions and 0 deletions

View File

@ -219,6 +219,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc,
}
memcpy(Directive, &DirectiveStr[0], IdLen);
Directive[IdLen] = 0;
FirstChar = Directive[0];
}
if (FirstChar == 'i' && Directive[1] == 'f') {

View File

@ -0,0 +1,9 @@
// RUN: clang -E %s | grep bark
#if 0
blah
#\
else
bark
#endif