[Lldb-commits] [lldb] 3806b38 - [LLDB] Initialize temporary token
Shafik Yaghmour via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 30 09:05:49 PDT 2020
Thank you for catching this and fixing it!
> On Mar 30, 2020, at 7:13 AM, Benjamin Kramer via lldb-commits <lldb-commits at lists.llvm.org> wrote:
>
>
> Author: Benjamin Kramer
> Date: 2020-03-30T16:12:50+02:00
> New Revision: 3806b38045c08c674dc5db65bb06cf3dc34b9cc7
>
> URL: https://github.com/llvm/llvm-project/commit/3806b38045c08c674dc5db65bb06cf3dc34b9cc7
> DIFF: https://github.com/llvm/llvm-project/commit/3806b38045c08c674dc5db65bb06cf3dc34b9cc7.diff
>
> LOG: [LLDB] Initialize temporary token
>
> Found by msan.
>
> Added:
>
>
> Modified:
> lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
> index a834be96444d..eca36fff18f8 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);
>
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
More information about the lldb-commits
mailing list