diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-09-24 16:42:27 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-09-24 16:42:27 +0000 |
commit | 92244901c3c0101b8114ffa52c1dcf0e9cda72a1 (patch) | |
tree | f77fd6810eb527db843f18c2a84a688def61a4ac /examples | |
parent | ef534da2d0f3316b5ad378a00899e8d127362b5d (diff) | |
download | external_llvm-92244901c3c0101b8114ffa52c1dcf0e9cda72a1.zip external_llvm-92244901c3c0101b8114ffa52c1dcf0e9cda72a1.tar.gz external_llvm-92244901c3c0101b8114ffa52c1dcf0e9cda72a1.tar.bz2 |
Fix a hypothetical problem for targets with StackGrowsUp and a non-zero
LocalAreaOffset. (We don't have any of those right now.)
PEI::calculateFrameObjectOffsets includes the absolute value of the
LocalAreaOffset in the cumulative offset value used to calculate the
stack frame size. It then adds the raw value of the LocalAreaOffset
to the stack size. For a StackGrowsDown target, that raw value is negative
and has the effect of cancelling out the absolute value that was added
earlier, but that obviously won't work for a StackGrowsUp target. Change
to subtract the absolute value of the LocalAreaOffset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions