OSDN Git Service

[StatepointLowering] Fix a mistake in rL261336
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 19 Feb 2016 18:15:53 +0000 (18:15 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 19 Feb 2016 18:15:53 +0000 (18:15 +0000)
commit2ad23171bdd605ca2ed957c6835f4402692cc08d
tree84e8135102f2c9e394e0dd821bfcad591bc7a4b8
parent3dd74513a8db49868139018685852319b5cae85d
[StatepointLowering] Fix a mistake in rL261336

The check on MFI->getObjectSize() has to be on the FrameIndex, not on
the index of the FrameIndex in AllocatedStackSlots.  Weirdly, the tests
I added in rL261336 didn't catch this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261347 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/StatepointLowering.cpp