From 7c973285698c7e0823715e373f93b56158a84f2d Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Tue, 18 Feb 2025 16:24:28 -0500 Subject: [PATCH] Fix -Wreorder-ctor warning in DiagnosticVerifier.cpp. --- lib/Frontend/DiagnosticVerifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Frontend/DiagnosticVerifier.cpp b/lib/Frontend/DiagnosticVerifier.cpp index d0f56f0be04e5..75766c4f14989 100644 --- a/lib/Frontend/DiagnosticVerifier.cpp +++ b/lib/Frontend/DiagnosticVerifier.cpp @@ -111,7 +111,7 @@ struct DiagLoc { DiagLoc(SourceManager &diagSM, SourceManager &verifierSM, SourceLoc initialSourceLoc, bool wantEnd = false) - : sourceLoc(initialSourceLoc), bufferID(std::nullopt), line(0), column(0) + : bufferID(std::nullopt), line(0), column(0), sourceLoc(initialSourceLoc) { if (sourceLoc.isInvalid()) return;