Skip to content

Commit 2d0f977

Browse files
authored
Merge pull request #79471 from rjmansfield/reorder-ctor-warning
Fix -Wreorder-ctor warning in DiagnosticVerifier.cpp.
2 parents 2db13ee + 7c97328 commit 2d0f977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct DiagLoc {
111111

112112
DiagLoc(SourceManager &diagSM, SourceManager &verifierSM,
113113
SourceLoc initialSourceLoc, bool wantEnd = false)
114-
: sourceLoc(initialSourceLoc), bufferID(std::nullopt), line(0), column(0)
114+
: bufferID(std::nullopt), line(0), column(0), sourceLoc(initialSourceLoc)
115115
{
116116
if (sourceLoc.isInvalid())
117117
return;

0 commit comments

Comments
 (0)