diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d512ef9b1d1..e18beb5018a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3870,7 +3870,8 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {        Flags |= ISD::ParamFlags::ByVal;        const PointerType *Ty = cast<PointerType>(I->getType());        const StructType *STy = cast<StructType>(Ty->getElementType()); -      unsigned StructAlign = Log2_32(getTargetData()->getABITypeAlignment(STy)); +      unsigned StructAlign = +          Log2_32(getTargetData()->getCallFrameTypeAlignment(STy));        unsigned StructSize  = getTargetData()->getTypeSize(STy);        Flags |= (StructAlign << ISD::ParamFlags::ByValAlignOffs);        Flags |= (StructSize  << ISD::ParamFlags::ByValSizeOffs); @@ -3999,7 +4000,8 @@ TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,        Flags |= ISD::ParamFlags::ByVal;        const PointerType *Ty = cast<PointerType>(Args[i].Ty);        const StructType *STy = cast<StructType>(Ty->getElementType()); -      unsigned StructAlign = Log2_32(getTargetData()->getABITypeAlignment(STy)); +      unsigned StructAlign = +          Log2_32(getTargetData()->getCallFrameTypeAlignment(STy));        unsigned StructSize  = getTargetData()->getTypeSize(STy);        Flags |= (StructAlign << ISD::ParamFlags::ByValAlignOffs);        Flags |= (StructSize  << ISD::ParamFlags::ByValSizeOffs);  | 

