[LLDB] Initialize temporary token
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Mar 2020 14:12:14 +0000 (16:12 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Mar 2020 14:12:50 +0000 (16:12 +0200)
Found by msan.

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

index a834be9..eca36ff 100644 (file)
@@ -347,7 +347,7 @@ bool CPlusPlusNameParser::ConsumeOperator() {
       // If we find ( or < then this is indeed operator<< no need for fix.
       if (n_token.getKind() != tok::l_paren && n_token.getKind() != tok::less) {
         clang::Token tmp_tok;
-
+        tmp_tok.startToken();
         tmp_tok.setLength(1);
         tmp_tok.setLocation(token.getLocation().getLocWithOffset(1));
         tmp_tok.setKind(tok::less);