unwind-dw2.c (_Unwind_GetGR): Compare regno instead of index to DWARF_ZERO_REG.

* unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare
	regno instead of index to DWARF_ZERO_REG.

From-SVN: r269021
This commit is contained in:
Uros Bizjak 2019-02-19 17:10:00 +01:00 committed by Uros Bizjak
parent 3b8f48d6f0
commit fe95aee9ce
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-02-19 Uroš Bizjak <ubizjak@gmail.com>
* unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare
regno instead of index to DWARF_ZERO_REG.
2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
* config/visium/lib2funcs.c (__set_trampoline_parity): Replace

View File

@ -225,7 +225,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int regno)
_Unwind_Context_Reg_Val val;
#ifdef DWARF_ZERO_REG
if (index == DWARF_ZERO_REG)
if (regno == DWARF_ZERO_REG)
return 0;
#endif