[NFC] Fix order of initialization in MCTargetOptions
authorAndrew Savonichev <andrew.savonichev@gmail.com>
Tue, 26 Apr 2022 19:05:32 +0000 (22:05 +0300)
committerAndrew Savonichev <andrew.savonichev@gmail.com>
Tue, 26 Apr 2022 19:26:00 +0000 (22:26 +0300)
This patch fixes a compiler warning after D121299:

field 'MCUseDwarfDirectory' will be initialized after field
'MCIncrementalLinkerCompatible'

llvm/lib/MC/MCTargetOptions.cpp

index 4e51ab7..bb48182 100644 (file)
@@ -14,10 +14,10 @@ using namespace llvm;
 MCTargetOptions::MCTargetOptions()
     : MCRelaxAll(false), MCNoExecStack(false), MCFatalWarnings(false),
       MCNoWarn(false), MCNoDeprecatedWarn(false), MCNoTypeCheck(false),
-      MCSaveTempLabels(false), MCUseDwarfDirectory(DefaultDwarfDirectory),
-      MCIncrementalLinkerCompatible(false), ShowMCEncoding(false),
-      ShowMCInst(false), AsmVerbose(false), PreserveAsmComments(true),
-      Dwarf64(false) {}
+      MCSaveTempLabels(false), MCIncrementalLinkerCompatible(false),
+      ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
+      PreserveAsmComments(true), Dwarf64(false),
+      MCUseDwarfDirectory(DefaultDwarfDirectory) {}
 
 StringRef MCTargetOptions::getABIName() const {
   return ABIName;