From: Krasimir Georgiev Date: Mon, 24 Jul 2017 19:52:49 +0000 (+0000) Subject: [clang-format] Reorder assignments, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04bee3d442542af89ac08bbf0ece59948ea2d775;p=clang [clang-format] Reorder assignments, NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308918 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 427dfd5725..9bb9ed1918 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -494,8 +494,8 @@ void UnwrappedLineParser::parseBlock(bool MustBeDeclaration, bool AddLevel, if (MunchSemi && FormatTok->Tok.is(tok::semi)) nextToken(); - Line->MatchingOpeningBlockLineIndex = OpeningLineIndex; Line->Level = InitialLevel; + Line->MatchingOpeningBlockLineIndex = OpeningLineIndex; if (OpeningLineIndex != UnwrappedLine::kInvalidIndex) { // Update the opening line to add the forward reference as well (*CurrentLines)[OpeningLineIndex].MatchingOpeningBlockLineIndex =