[ELF] - Fix build bot after rL327612.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Mar 2018 09:24:51 +0000 (09:24 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Mar 2018 09:24:51 +0000 (09:24 +0000)
Error was:
error: field 'Size' will be initialized after field 'CommandString' [-Werror,-Wreorder]

llvm-svn: 327613

lld/ELF/LinkerScript.h

index 5d5e40e..dc54061 100644 (file)
@@ -191,8 +191,8 @@ struct AssertCommand : BaseCommand {
 // Represents BYTE(), SHORT(), LONG(), or QUAD().
 struct ByteCommand : BaseCommand {
   ByteCommand(Expr E, unsigned Size, std::string CommandString)
-      : BaseCommand(ByteKind), Expression(E), Size(Size),
-        CommandString(CommandString) {}
+      : BaseCommand(ByteKind), Expression(E), CommandString(CommandString),
+        Size(Size) {}
 
   static bool classof(const BaseCommand *C) { return C->Kind == ByteKind; }