Skip to content

Commit 3806b38

Browse files
committed
[LLDB] Initialize temporary token
Found by msan.
1 parent 908f78f commit 3806b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ bool CPlusPlusNameParser::ConsumeOperator() {
347347
// If we find ( or < then this is indeed operator<< no need for fix.
348348
if (n_token.getKind() != tok::l_paren && n_token.getKind() != tok::less) {
349349
clang::Token tmp_tok;
350-
350+
tmp_tok.startToken();
351351
tmp_tok.setLength(1);
352352
tmp_tok.setLocation(token.getLocation().getLocWithOffset(1));
353353
tmp_tok.setKind(tok::less);

0 commit comments

Comments
 (0)