Correct sense of unwind return address register range assertion
I encountered this on FreeBSD/arm64, and then found the same issue was reported by Daniil Troshkov. llvm-svn: 244892
This commit is contained in:
parent
033181bcd2
commit
76050da17e
|
|
@ -170,7 +170,7 @@ int DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pint_t pc,
|
|||
const int lastReg = R::lastDwarfRegNum();
|
||||
assert((int)CFI_Parser<A>::kMaxRegisterNumber > lastReg &&
|
||||
"register range too large");
|
||||
assert(lastReg <= (int)cieInfo.returnAddressRegister &&
|
||||
assert(lastReg >= (int)cieInfo.returnAddressRegister &&
|
||||
"register range does not contain return address register");
|
||||
for (int i = 0; i <= lastReg; ++i) {
|
||||
if (prolog.savedRegisters[i].location !=
|
||||
|
|
|
|||
Loading…
Reference in New Issue