Fix an out-of-bounds error in RegisterContextDarwin_arm64
authorPavel Labath <pavel@labath.sk>
Wed, 27 Mar 2019 09:39:46 +0000 (09:39 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 27 Mar 2019 09:39:46 +0000 (09:39 +0000)
commitcf6c19c2d35c4dc22fc6e3c405ab7a4071848fc2
tree54c6f58a2accdea563e7fa008a5c6dce08d098a9
parent3f2e29b013722e129b470fb62a071d05fdcff468
Fix an out-of-bounds error in RegisterContextDarwin_arm64

Summary:
gcc diagnoses this as "array subscript 63 is above array bounds of
'RegisterContextDarwin_arm64::VReg [32]'".

The correct fix seems to be subtracting the fpu register base index, but
I have no way of verifying that this actually works.

Reviewers: jasonmolenda

Subscribers: javed.absar, kristof.beyls, lldb-commits

Differential Revision: https://reviews.llvm.org/D59495

llvm-svn: 357055
lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp