forked from OSchip/llvm-project
Fix off-by-one IsGPR().
f0 was being counted as a GPR, due to the check in IsGPR(). Correct it by looking at the precise GPR range. llvm-svn: 228547
This commit is contained in:
parent
baf0a2415c
commit
5c0b98e205
|
@ -161,7 +161,7 @@ g_reg_sets_powerpc[k_num_register_sets] =
|
|||
|
||||
bool RegisterContextPOSIX_powerpc::IsGPR(unsigned reg)
|
||||
{
|
||||
return reg <= k_num_gpr_registers_powerpc; // GPR's come first.
|
||||
return (reg >= k_first_gpr_powerpc) && (reg <= k_last_gpr_powerpc); // GPR's come first.
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue