From e7fdeda2c9dbe545445335f060eb450d15577aec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Fri, 3 Dec 2021 08:25:23 +0100 Subject: [PATCH] [clang-format][NFC] Rename variable so no shadowing happens In the loop there is also a Node. Differential Revision: https://reviews.llvm.org/D115063 --- clang/lib/Format/UnwrappedLineFormatter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp index b9175c59216b..9753c24bfcdb 100644 --- a/clang/lib/Format/UnwrappedLineFormatter.cpp +++ b/clang/lib/Format/UnwrappedLineFormatter.cpp @@ -1015,9 +1015,9 @@ private: QueueType Queue; // Insert start element into queue. - StateNode *Node = + StateNode *RootNode = new (Allocator.Allocate()) StateNode(InitialState, false, nullptr); - Queue.push(QueueItem(OrderedPenalty(0, Count), Node)); + Queue.push(QueueItem(OrderedPenalty(0, Count), RootNode)); ++Count; unsigned Penalty = 0; -- 2.34.1