diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /lib/Target/Mips/MipsCCState.cpp | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
Diffstat (limited to 'lib/Target/Mips/MipsCCState.cpp')
| -rw-r--r-- | lib/Target/Mips/MipsCCState.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsCCState.cpp b/lib/Target/Mips/MipsCCState.cpp index 6a03ee9927d7..81a1cced93b7 100644 --- a/lib/Target/Mips/MipsCCState.cpp +++ b/lib/Target/Mips/MipsCCState.cpp @@ -101,9 +101,9 @@ void MipsCCState::PreAnalyzeReturnForF128(    const MachineFunction &MF = getMachineFunction();    for (unsigned i = 0; i < Outs.size(); ++i) {      OriginalArgWasF128.push_back( -        originalTypeIsF128(MF.getFunction()->getReturnType(), nullptr)); +        originalTypeIsF128(MF.getFunction().getReturnType(), nullptr));      OriginalArgWasFloat.push_back( -        MF.getFunction()->getReturnType()->isFloatingPointTy()); +        MF.getFunction().getReturnType()->isFloatingPointTy());    }  } @@ -149,7 +149,7 @@ void MipsCCState::PreAnalyzeFormalArgumentsForF128(      const SmallVectorImpl<ISD::InputArg> &Ins) {    const MachineFunction &MF = getMachineFunction();    for (unsigned i = 0; i < Ins.size(); ++i) { -    Function::const_arg_iterator FuncArg = MF.getFunction()->arg_begin(); +    Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin();      // SRet arguments cannot originate from f128 or {f128} returns so we just      // push false. We have to handle this specially since SRet arguments @@ -161,7 +161,7 @@ void MipsCCState::PreAnalyzeFormalArgumentsForF128(        continue;      } -    assert(Ins[i].getOrigArgIndex() < MF.getFunction()->arg_size()); +    assert(Ins[i].getOrigArgIndex() < MF.getFunction().arg_size());      std::advance(FuncArg, Ins[i].getOrigArgIndex());      OriginalArgWasF128.push_back(  | 
