Skip to content

Commit

Permalink
Merge pull request #4845 from ligfx/addbraces
Browse files Browse the repository at this point in the history
JitIL/IR.cpp: add braces around std::array initalizers
  • Loading branch information
Parlane committed Feb 7, 2017
2 parents 2112acf + 64405f2 commit 47ccf52
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Source/Core/Core/PowerPC/JitILCommon/IR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1370,11 +1370,11 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
number_of_operands[CInt16] = 0;
number_of_operands[CInt32] = 0;

static constexpr std::array<u32, 12> zero_op = {
LoadCR, LoadLink, LoadMSR, LoadGReg, LoadCTR, InterpreterBranch,
LoadCarry, RFIExit, LoadFReg, LoadFRegDENToZero, LoadGQR, Int3,
};
static constexpr std::array<u32, 39> unary_op = {
static constexpr std::array<u32, 12> zero_op = {{
LoadCR, LoadLink, LoadMSR, LoadGReg, LoadCTR, InterpreterBranch, LoadCarry, RFIExit,
LoadFReg, LoadFRegDENToZero, LoadGQR, Int3,
}};
static constexpr std::array<u32, 39> unary_op = {{
StoreLink,
BranchUncond,
StoreCR,
Expand Down Expand Up @@ -1414,8 +1414,8 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
FastCREQSet,
FastCRGTSet,
FastCRLTSet,
};
static constexpr std::array<u32, 44> binary_op = {
}};
static constexpr std::array<u32, 44> binary_op = {{
BranchCond,
IdleBranch,
And,
Expand Down Expand Up @@ -1460,7 +1460,7 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
FPMerge10,
FPMerge11,
FDCmpCR,
};
}};
for (auto op : zero_op)
number_of_operands[op] = 0;

Expand Down

0 comments on commit 47ccf52

Please sign in to comment.