SIMachineFunctionInfo.cpp: Appease msc18 to use std::array.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2016-06-27 10:26:43 +00:00
parent 9a3b139888
commit c4cd97e86f
2 changed files with 5 additions and 4 deletions

View File

@ -53,8 +53,8 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF)
ReturnsVoid(true),
MaximumWorkGroupSize(0),
DebuggerReservedVGPRCount(0),
DebuggerWorkGroupIDStackObjectIndices{0, 0, 0},
DebuggerWorkItemIDStackObjectIndices{0, 0, 0},
DebuggerWorkGroupIDStackObjectIndices({{0, 0, 0}}),
DebuggerWorkItemIDStackObjectIndices({{0, 0, 0}}),
LDSWaveSpillSize(0),
PSInputEna(0),
NumUserSGPRs(0),

View File

@ -16,6 +16,7 @@
#include "AMDGPUMachineFunction.h"
#include "SIRegisterInfo.h"
#include <array>
#include <map>
namespace llvm {
@ -65,9 +66,9 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
// Number of reserved VGPRs for debugger usage.
unsigned DebuggerReservedVGPRCount;
// Stack object indices for work group IDs.
int DebuggerWorkGroupIDStackObjectIndices[3];
std::array<int, 3> DebuggerWorkGroupIDStackObjectIndices;
// Stack object indices for work item IDs.
int DebuggerWorkItemIDStackObjectIndices[3];
std::array<int, 3> DebuggerWorkItemIDStackObjectIndices;
public:
// FIXME: Make private