commit | 6554beffe46033f654400d13c0ed6f7b602d8bf1 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Dec 19 01:15:13 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Dec 19 01:15:13 2005 +0000 |
tree | b9b7f3a55c982a8fc54e5071d49025f588fb4207 | |
parent | 97561fc2eb1cdccf482ea0f55b86f86b1def22e3 [diff] [blame] |
Keep stack frames 8-byte aligned. This fixes olden/voronoi git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24849 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 336cbb7..2b4cf73 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -360,6 +360,9 @@ else ArgsSize = 0; + // Keep stack frames 8-byte aligned. + ArgsSize = (ArgsSize+7) & ~7; + Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain, DAG.getConstant(ArgsSize, getPointerTy()));