From 3806b38045c08c674dc5db65bb06cf3dc34b9cc7 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 30 Mar 2020 16:12:14 +0200 Subject: [PATCH] [LLDB] Initialize temporary token Found by msan. --- lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp index a834be9..eca36ff 100644 --- a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp +++ b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp @@ -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); -- 2.7.4