Index: clang/lib/Format/UnwrappedLineFormatter.cpp =================================================================== --- clang/lib/Format/UnwrappedLineFormatter.cpp +++ clang/lib/Format/UnwrappedLineFormatter.cpp @@ -1017,9 +1017,9 @@ 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;