]> granicus.if.org Git - clang/commitdiff
[clang-format] Reorder assignments, NFC
authorKrasimir Georgiev <krasimir@google.com>
Mon, 24 Jul 2017 19:52:49 +0000 (19:52 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 24 Jul 2017 19:52:49 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308918 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/UnwrappedLineParser.cpp

index 427dfd57254aa3d461f7a4c89a05ad55fd163851..9bb9ed19183ccbaaa0b9add510ab278671ab2228 100644 (file)
@@ -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 =