[llvm] r329363 - Fix lld-x86_64-darwin13 build fails.
Manoj Gupta via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 16:23:29 PDT 2018
Author: manojgupta
Date: Thu Apr 5 16:23:29 2018
New Revision: 329363
URL: http://llvm.org/viewvc/llvm-project?rev=329363&view=rev
Log:
Fix lld-x86_64-darwin13 build fails.
Use double braces in std::array initialization
to keep Darwin builders happy.
Modified:
llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsFastISel.cpp?rev=329363&r1=329362&r2=329363&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsFastISel.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsFastISel.cpp Thu Apr 5 16:23:29 2018
@@ -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();
More information about the llvm-commits
mailing list