Chromium Code Reviews| Index: src/register-allocator.h |
| =================================================================== |
| --- src/register-allocator.h (revision 4341) |
| +++ src/register-allocator.h (working copy) |
| @@ -213,7 +213,12 @@ |
| } |
| private: |
| - static const int kNumRegisters = RegisterAllocatorConstants::kNumRegisters; |
| + // C++ doesn't like zero length arrays, so we make the array length 1 even if |
| + // we don't need it. |
| + static const int kNumRegisters = |
|
Søren Thygesen Gjesse
2010/04/07 10:46:51
4 space indent.
Erik Corry
2010/04/07 12:49:17
Done.
|
| + (RegisterAllocatorConstants::kNumRegisters == 0 ? |
|
Søren Thygesen Gjesse
2010/04/07 10:46:51
1 : RegisterAllocatorConstants::kNumRegisters on s
Erik Corry
2010/04/07 12:49:17
Done.
|
| + 1 : |
| + RegisterAllocatorConstants::kNumRegisters); |
| int ref_counts_[kNumRegisters]; |