We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3969c6 commit 3641fd2Copy full SHA for 3641fd2
clang/lib/Parse/ParseDeclHeavy.cpp
@@ -105,6 +105,8 @@ class LexerWriter {
105
if (Chars.empty()) return;
106
// Copy to LexerSpellings to ensure null terminator.
107
Chars = Chars.copy(LexerSpellings);
108
+ char* NullTerm = LexerSpellings.template Allocate<char>(1);
109
+ *NullTerm = 0;
110
// Lex Tokens for the TokenBuffer.
111
clang::Lexer Lexer(clang::SourceLocation(), Parser.getLangOpts(),
112
Chars.data(), Chars.data(), &(*(Chars.end())));
0 commit comments