diff options
author | 2018-06-21 16:03:12 +0100 | |
---|---|---|
committer | 2018-06-22 14:26:05 +0100 | |
commit | a45a85c61acbcc4ca4046619b7a98635b32e7622 (patch) | |
tree | cb9b1047be9730f2bec9ef73157fec4c7a53161a /runtime/stack_map.h | |
parent | 0b4e5a3a1275a4aa6955a0576ab9d57eedd5bdd2 (diff) |
Ensure that BitTableAccessor refers to non-null table.
Hopefully this should make clang analyzer happy.
Test: test-art-host-gtest-stack_map_test
Change-Id: I19c9048302dd47dd262842e0b58ed139f83fa1f6
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r-- | runtime/stack_map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h index 7aac792523..c17efcff25 100644 --- a/runtime/stack_map.h +++ b/runtime/stack_map.h @@ -388,7 +388,7 @@ class CodeInfo { return stack_map; } } - return StackMap(); + return stack_maps_.GetInvalidRow(); } // Searches the stack map list backwards because catch stack maps are stored at the end. @@ -399,7 +399,7 @@ class CodeInfo { return stack_map; } } - return StackMap(); + return stack_maps_.GetInvalidRow(); } StackMap GetOsrStackMapForDexPc(uint32_t dex_pc) const { @@ -409,7 +409,7 @@ class CodeInfo { return stack_map; } } - return StackMap(); + return stack_maps_.GetInvalidRow(); } StackMap GetStackMapForNativePcOffset(uint32_t pc, InstructionSet isa = kRuntimeISA) const; @@ -421,7 +421,7 @@ class CodeInfo { return item; } } - return InvokeInfo(); + return invoke_infos_.GetInvalidRow(); } // Dump this CodeInfo object on `vios`. |