aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r--lib/Lex/PPLexerChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp
index bd0ff7f94a..c15675114d 100644
--- a/lib/Lex/PPLexerChange.cpp
+++ b/lib/Lex/PPLexerChange.cpp
@@ -86,7 +86,7 @@ Token Preprocessor::LookAhead(unsigned N) {
// left, we can just grow it. This means we only have to do the new 1/16th as
// often.
- Token *LookaheadTokens = new Token[N];
+ Token *LookaheadTokens = new Token[N+1];
// Read N+1 tokens into LookaheadTokens. After this loop, Tok is the token
// to return.