diff options
author | 2014-11-03 23:41:03 -0800 | |
---|---|---|
committer | 2014-11-03 23:41:03 -0800 | |
commit | 575e78c41ece0dec969d31f46be563d4eb7ae43b (patch) | |
tree | 16906df0ba0912a6cb01b3139ba7c60d5f9d09b7 /runtime/verifier/instruction_flags.h | |
parent | 2998e9cdc9f19c30c4944a4726ed9f147de79ebd (diff) |
ART: Replace COMPILE_ASSERT with static_assert (runtime)
Replace all occurrences of COMPILE_ASSERT in the runtime tree.
Change-Id: I01e420899c760094fb342cc6cb9e692dd670a0b2
Diffstat (limited to 'runtime/verifier/instruction_flags.h')
-rw-r--r-- | runtime/verifier/instruction_flags.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/verifier/instruction_flags.h b/runtime/verifier/instruction_flags.h index 36a6e554dd..e67067cdde 100644 --- a/runtime/verifier/instruction_flags.h +++ b/runtime/verifier/instruction_flags.h @@ -130,7 +130,8 @@ class InstructionFlags FINAL { uint8_t flags_; }; -COMPILE_ASSERT(sizeof(InstructionFlags) == sizeof(uint8_t), err); +static_assert(sizeof(InstructionFlags) == sizeof(uint8_t), + "Size of InstructionFlags not equal to uint8_t"); } // namespace verifier } // namespace art |