From: David Bolvansky Date: Wed, 15 May 2019 20:29:33 +0000 (+0000) Subject: [clang-format] Fixed self assignment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4455ba48b7288f0399ff37a5038713bb9121df92;p=clang [clang-format] Fixed self assignment Reviewers: MyDeveloperDay, RKSimon Reviewed By: MyDeveloperDay Subscribers: RKSimon, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61281 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/FormatTokenLexer.cpp b/lib/Format/FormatTokenLexer.cpp index 3a1dcef7d4..c12daa7f20 100644 --- a/lib/Format/FormatTokenLexer.cpp +++ b/lib/Format/FormatTokenLexer.cpp @@ -246,7 +246,6 @@ bool FormatTokenLexer::tryMergeCSharpNullConditionals() { StringRef(Identifier->TokenText.begin(), Question->TokenText.end() - Identifier->TokenText.begin()); Identifier->ColumnWidth += Question->ColumnWidth; - Identifier->Type = Identifier->Type; Tokens.erase(Tokens.end() - 1); return true; }