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:
Ed Maste 2015-08-13 13:45:45 +00:00
parent 033181bcd2
commit 76050da17e
1 changed files with 1 additions and 1 deletions

View File

@ -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 !=