diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 13:13:10 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 13:13:10 +0000 | 
| commit | 7d523365ff1a3cc95bc058b33102500f61e8166d (patch) | |
| tree | b466a4817f79516eb1df8eae92bccf62ecc84003 /contrib/llvm/lib/CodeGen/CallingConvLower.cpp | |
| parent | e3b65fde506060bec5cd110fcf03b440bd0eea1d (diff) | |
| parent | dd58ef019b700900793a1eb48b52123db01b654e (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/lib/CodeGen/CallingConvLower.cpp')
| -rw-r--r-- | contrib/llvm/lib/CodeGen/CallingConvLower.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/contrib/llvm/lib/CodeGen/CallingConvLower.cpp b/contrib/llvm/lib/CodeGen/CallingConvLower.cpp index fb29b1db7a43..23c0d542560e 100644 --- a/contrib/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/contrib/llvm/lib/CodeGen/CallingConvLower.cpp @@ -32,6 +32,7 @@ CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,        CallOrPrologue(Unknown) {    // No stack is used.    StackOffset = 0; +  MaxStackArgAlign = 1;    clearByValRegsInfo();    UsedRegs.resize((TRI.getNumRegs()+31)/32); @@ -192,6 +193,7 @@ static bool isValueTypeInRegForCC(CallingConv::ID CC, MVT VT) {  void CCState::getRemainingRegParmsForType(SmallVectorImpl<MCPhysReg> &Regs,                                            MVT VT, CCAssignFn Fn) {    unsigned SavedStackOffset = StackOffset; +  unsigned SavedMaxStackArgAlign = MaxStackArgAlign;    unsigned NumLocs = Locs.size();    // Set the 'inreg' flag if it is used for this calling convention. @@ -223,6 +225,7 @@ void CCState::getRemainingRegParmsForType(SmallVectorImpl<MCPhysReg> &Regs,    // as allocated so that future queries don't return the same registers, i.e.    // when i64 and f64 are both passed in GPRs.    StackOffset = SavedStackOffset; +  MaxStackArgAlign = SavedMaxStackArgAlign;    Locs.resize(NumLocs);  } | 
