mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Init member structs in constructor.
Fixes build error on windows where MSVC does not support list initialization inside member initializer list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f18a32f1af
commit
c1645b33e4
@ -38,9 +38,15 @@ class NVVMIntrRange : public FunctionPass {
|
||||
public:
|
||||
static char ID;
|
||||
NVVMIntrRange() : NVVMIntrRange(NVVMIntrRangeSM) {}
|
||||
NVVMIntrRange(unsigned int SmVersion)
|
||||
: FunctionPass(ID), MaxBlockSize{1024, 1024, 64},
|
||||
MaxGridSize{SmVersion >= 30 ? 0x7fffffffu : 0xffffu, 0xffff, 0xffff} {
|
||||
NVVMIntrRange(unsigned int SmVersion) : FunctionPass(ID) {
|
||||
MaxBlockSize.x = 1024;
|
||||
MaxBlockSize.y = 1024;
|
||||
MaxBlockSize.z = 64;
|
||||
|
||||
MaxGridSize.x = SmVersion >= 30 ? 0x7fffffff : 0xffff;
|
||||
MaxGridSize.y = 0xffff;
|
||||
MaxGridSize.z = 0xffff;
|
||||
|
||||
initializeNVVMIntrRangePass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user