diff options
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r-- | runtime/stack.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index a765a3fc5e..d956f0e25d 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -325,6 +325,10 @@ bool StackVisitor::GetVRegFromOptimizedCode(ArtMethod* m, uint16_t vreg, VRegKin bool StackVisitor::GetRegisterIfAccessible(uint32_t reg, VRegKind kind, uint32_t* val) const { const bool is_float = (kind == kFloatVReg) || (kind == kDoubleLoVReg) || (kind == kDoubleHiVReg); + + // X86 float registers are 64-bit and the logic below does not apply. + DCHECK(!is_float || kRuntimeISA != InstructionSet::kX86); + if (!IsAccessibleRegister(reg, is_float)) { return false; } |