Fix lld-x86_64-darwin13 build fails.
authorManoj Gupta <manojgupta@google.com>
Thu, 5 Apr 2018 23:23:29 +0000 (23:23 +0000)
committerManoj Gupta <manojgupta@google.com>
Thu, 5 Apr 2018 23:23:29 +0000 (23:23 +0000)
Use double braces in std::array initialization
to keep Darwin builders happy.

llvm-svn: 329363

llvm/lib/Target/Mips/MipsFastISel.cpp

index ac1f9c5..870614a 100644 (file)
@@ -1307,10 +1307,10 @@ bool MipsFastISel::fastLowerArguments() {
     return false;
   }
 
-  std::array<MCPhysReg, 4> GPR32ArgRegs = {Mips::A0, Mips::A1, Mips::A2,
-                                           Mips::A3};
-  std::array<MCPhysReg, 2> FGR32ArgRegs = {Mips::F12, Mips::F14};
-  std::array<MCPhysReg, 2> AFGR64ArgRegs = {Mips::D6, Mips::D7};
+  std::array<MCPhysReg, 4> GPR32ArgRegs = {{Mips::A0, Mips::A1, Mips::A2,
+                                           Mips::A3}};
+  std::array<MCPhysReg, 2> FGR32ArgRegs = {{Mips::F12, Mips::F14}};
+  std::array<MCPhysReg, 2> AFGR64ArgRegs = {{Mips::D6, Mips::D7}};
   auto NextGPR32 = GPR32ArgRegs.begin();
   auto NextFGR32 = FGR32ArgRegs.begin();
   auto NextAFGR64 = AFGR64ArgRegs.begin();