diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:21:50 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:21:50 +0000 |
commit | aadc780a56820c263dca141b2b9f9e39355f6991 (patch) | |
tree | 8342c31cda1a8c7746aa91eccf58599ddd261635 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 2c430cbf03b359b2db9001f17f75832dc0400c04 (diff) | |
download | external_llvm-aadc780a56820c263dca141b2b9f9e39355f6991.zip external_llvm-aadc780a56820c263dca141b2b9f9e39355f6991.tar.gz external_llvm-aadc780a56820c263dca141b2b9f9e39355f6991.tar.bz2 |
Use precomputed value, if any
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index a59f62e..fda08bc 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -313,7 +313,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // Loop over all of the stack objects, assigning sequential addresses... MachineFrameInfo *FFI = Fn.getFrameInfo(); - unsigned MaxAlign = 0; + unsigned MaxAlign = FFI->getMaxAlignment(); // Start at the beginning of the local area. // The Offset is the distance from the stack top in the direction |