]> granicus.if.org Git - clang/commitdiff
[clang-format] Fixed self assignment
authorDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 15 May 2019 20:29:33 +0000 (20:29 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 15 May 2019 20:29:33 +0000 (20:29 +0000)
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

lib/Format/FormatTokenLexer.cpp

index 3a1dcef7d43b0e511bed6cb0ecf0f2d79ea917a3..c12daa7f20e9ec842bb870f611f090db78492fcf 100644 (file)
@@ -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;
 }