diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-27 05:34:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-27 05:34:03 +0000 |
commit | 202fd2c4fb8d98ea9990df9bc157b11bc26ac2fa (patch) | |
tree | 1f3d795e1ad6a3e3be8d94ed8f08c3c6c7a9dc7f /lib/Lex/PPDirectives.cpp | |
parent | 08c375cd52b8f6b6a6915a2007205bc8179f41e9 (diff) |
Fix a bug that I noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r-- | lib/Lex/PPDirectives.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp index 4bf012c1b1..d277ec9dd4 100644 --- a/lib/Lex/PPDirectives.cpp +++ b/lib/Lex/PPDirectives.cpp @@ -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') { |