From d775f96090a588efbc837961434b10c57bcf189c Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 30 May 2018 18:12:52 +0100 Subject: Ensure all PCs in stack_map_test are aligned. It is invalid to try to encode improperly aligned PC. Test: test-art-target-gtest-stack_map_test Change-Id: I73e7b6225bfee87b0d6161298e19648ee6e1d499 --- runtime/stack_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stack_map.h') diff --git a/runtime/stack_map.h b/runtime/stack_map.h index 9d66b3181c..c558846bb3 100644 --- a/runtime/stack_map.h +++ b/runtime/stack_map.h @@ -675,7 +675,7 @@ class StackMap : public BitTable<6>::Accessor { uint32_t GetStackMaskIndex() const { return Get(); } static uint32_t PackNativePc(uint32_t native_pc, InstructionSet isa) { - // TODO: DCHECK_ALIGNED_PARAM(native_pc, GetInstructionSetInstructionAlignment(isa)); + DCHECK_ALIGNED_PARAM(native_pc, GetInstructionSetInstructionAlignment(isa)); return native_pc / GetInstructionSetInstructionAlignment(isa); } -- cgit v1.2.3-59-g8ed1b