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 | 7e5c3f018baab49b79a77dacc5a8383cd38f80c4 (patch) | |
tree | 8342c31cda1a8c7746aa91eccf58599ddd261635 /lib/CodeGen | |
parent | 5b7a30022e67fa84f181ba83dac13107d0415ee0 (diff) | |
download | external_llvm-7e5c3f018baab49b79a77dacc5a8383cd38f80c4.tar.gz external_llvm-7e5c3f018baab49b79a77dacc5a8383cd38f80c4.tar.bz2 external_llvm-7e5c3f018baab49b79a77dacc5a8383cd38f80c4.zip |
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')
-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 a59f62eb50..fda08bc29f 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 |