Skip to content

Commit 7c97328

Browse files
committed
Fix -Wreorder-ctor warning in DiagnosticVerifier.cpp.
1 parent bdf2294 commit 7c97328

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)