mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-10 19:47:40 +01:00
JitIL/IR.cpp: add braces around std::array initalizers
Fixes the following warnings on macOS Clang: ``` Building CXX object Source/Core/Core/CMakeFiles/core.dir/PowerPC/JitILCommon/IR.cpp.o Source/Core/Core/PowerPC/JitILCommon/IR.cpp:1374:9: warning: suggest braces around initialization of subobject [-Wmissing-braces] LoadCR, LoadLink, LoadMSR, LoadGReg, LoadCTR, InterpreterBranch, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Core/Core/PowerPC/JitILCommon/IR.cpp:1378:9: warning: suggest braces around initialization of subobject [-Wmissing-braces] StoreLink, ^~~~~~~~~~ Source/Core/Core/PowerPC/JitILCommon/IR.cpp:1419:9: warning: suggest braces around initialization of subobject [-Wmissing-braces] BranchCond, ^~~~~~~~~~~ 3 warnings generated. ```
This commit is contained in:
parent
bdf09c7d3b
commit
8048716efb
@ -1370,11 +1370,11 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
|
|||||||
number_of_operands[CInt16] = 0;
|
number_of_operands[CInt16] = 0;
|
||||||
number_of_operands[CInt32] = 0;
|
number_of_operands[CInt32] = 0;
|
||||||
|
|
||||||
static constexpr std::array<u32, 12> zero_op = {
|
static constexpr std::array<u32, 12> zero_op = {{
|
||||||
LoadCR, LoadLink, LoadMSR, LoadGReg, LoadCTR, InterpreterBranch,
|
LoadCR, LoadLink, LoadMSR, LoadGReg, LoadCTR, InterpreterBranch,
|
||||||
LoadCarry, RFIExit, LoadFReg, LoadFRegDENToZero, LoadGQR, Int3,
|
LoadCarry, RFIExit, LoadFReg, LoadFRegDENToZero, LoadGQR, Int3,
|
||||||
};
|
}};
|
||||||
static constexpr std::array<u32, 39> unary_op = {
|
static constexpr std::array<u32, 39> unary_op = {{
|
||||||
StoreLink,
|
StoreLink,
|
||||||
BranchUncond,
|
BranchUncond,
|
||||||
StoreCR,
|
StoreCR,
|
||||||
@ -1414,8 +1414,8 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
|
|||||||
FastCREQSet,
|
FastCREQSet,
|
||||||
FastCRGTSet,
|
FastCRGTSet,
|
||||||
FastCRLTSet,
|
FastCRLTSet,
|
||||||
};
|
}};
|
||||||
static constexpr std::array<u32, 44> binary_op = {
|
static constexpr std::array<u32, 44> binary_op = {{
|
||||||
BranchCond,
|
BranchCond,
|
||||||
IdleBranch,
|
IdleBranch,
|
||||||
And,
|
And,
|
||||||
@ -1460,7 +1460,7 @@ unsigned IRBuilder::getNumberOfOperands(InstLoc I) const
|
|||||||
FPMerge10,
|
FPMerge10,
|
||||||
FPMerge11,
|
FPMerge11,
|
||||||
FDCmpCR,
|
FDCmpCR,
|
||||||
};
|
}};
|
||||||
for (auto op : zero_op)
|
for (auto op : zero_op)
|
||||||
number_of_operands[op] = 0;
|
number_of_operands[op] = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user