Skip to content

Commit 7aef2b5

Browse files
committed
Fix static variable initializations
1 parent abbe36a commit 7aef2b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/IRGen/LoadableByAddress.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3422,8 +3422,8 @@ struct Properties {
34223422
uint16_t numRegisters = 0;
34233423

34243424
public:
3425-
static uint16_t MaxNumUses = 65535;
3426-
static uint16_t MaxNumRegisters = 65535;
3425+
static uint16_t MaxNumUses;
3426+
static uint16_t MaxNumRegisters;
34273427

34283428
void addConstructor() {
34293429
sawConstructor = true;
@@ -3484,6 +3484,9 @@ struct Properties {
34843484
};
34853485
}
34863486

3487+
uint16_t Properties::MaxNumUses = 65535;
3488+
uint16_t Properties::MaxNumRegisters = 65535;
3489+
34873490
namespace {
34883491
class LargeLoadableHeuristic {
34893492
GenericEnvironment *genEnv;

0 commit comments

Comments
 (0)