| Index: test/cctest/test-utils-a64.h
|
| diff --git a/test/cctest/test-utils-a64.h b/test/cctest/test-utils-a64.h
|
| index d8fa9a8de5e552e8f8277a045c988fe481a2b98f..250277542abbc05551863f3ff27fc7306303c26e 100644
|
| --- a/test/cctest/test-utils-a64.h
|
| +++ b/test/cctest/test-utils-a64.h
|
| @@ -161,12 +161,13 @@ class RegisterDump {
|
| uint64_t flags_;
|
| } dump_;
|
|
|
| - STATIC_ASSERT(sizeof(dump_.d_[0]) == kDRegSizeInBytes);
|
| - STATIC_ASSERT(sizeof(dump_.s_[0]) == kSRegSizeInBytes);
|
| - STATIC_ASSERT(sizeof(dump_.d_[0]) == kXRegSizeInBytes);
|
| - STATIC_ASSERT(sizeof(dump_.s_[0]) == kWRegSizeInBytes);
|
| - STATIC_ASSERT(sizeof(dump_.x_[0]) == kXRegSizeInBytes);
|
| - STATIC_ASSERT(sizeof(dump_.w_[0]) == kWRegSizeInBytes);
|
| + static dump_t for_sizeof();
|
| + STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kDRegSizeInBytes);
|
| + STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kSRegSizeInBytes);
|
| + STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kXRegSizeInBytes);
|
| + STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kWRegSizeInBytes);
|
| + STATIC_ASSERT(sizeof(for_sizeof().x_[0]) == kXRegSizeInBytes);
|
| + STATIC_ASSERT(sizeof(for_sizeof().w_[0]) == kWRegSizeInBytes);
|
| };
|
|
|
| // Some of these methods don't use the RegisterDump argument, but they have to
|
|
|