mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
[libunwind] Fix cfi_register for float registers.
Fixes D110144. registers.getFloatRegister is not const in ARM therefor can't be called here. Reviewed By: mstorsjo, #libunwind Differential Revision: https://reviews.llvm.org/D110731
This commit is contained in:
parent
47d6274d4c
commit
532783f9e1
@ -115,10 +115,12 @@ double DwarfInstructions<A, R>::getSavedFloatRegister(
|
||||
return addressSpace.getDouble(
|
||||
evaluateExpression((pint_t)savedReg.value, addressSpace,
|
||||
registers, cfa));
|
||||
case CFI_Parser<A>::kRegisterInRegister:
|
||||
return registers.getFloatRegister((int)savedReg.value);
|
||||
case CFI_Parser<A>::kRegisterUndefined:
|
||||
return 0.0;
|
||||
case CFI_Parser<A>::kRegisterInRegister:
|
||||
#ifndef _LIBUNWIND_TARGET_ARM
|
||||
return registers.getFloatRegister((int)savedReg.value);
|
||||
#endif
|
||||
case CFI_Parser<A>::kRegisterIsExpression:
|
||||
case CFI_Parser<A>::kRegisterUnused:
|
||||
case CFI_Parser<A>::kRegisterOffsetFromCFA:
|
||||
|
Loading…
Reference in New Issue
Block a user