summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-24 16:42:27 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-24 16:42:27 +0000
commit5fe313d6e04677908225d4e570f9d989151ba377 (patch)
tree6c0c0f57015b422cb7a55d2351127e68f69ad80c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent4e6f2e46e8ead8d4b700d61bdf1784c63c564900 (diff)
downloadbcm5719-llvm-5fe313d6e04677908225d4e570f9d989151ba377.tar.gz
bcm5719-llvm-5fe313d6e04677908225d4e570f9d989151ba377.zip
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. llvm-svn: 82693
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud