diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-12 16:06:58 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-12 16:06:58 +0000 |
| commit | 32cb5ac9041865aabd6d84ef410f52f07b309d1f (patch) | |
| tree | 15bdbc82e354c00535e11443bde93315ce68d5df /llvm/lib/Target/X86/X86FastISel.cpp | |
| parent | 80d333ba22bed8311d71a858d17cd49752145f8b (diff) | |
| download | bcm5719-llvm-32cb5ac9041865aabd6d84ef410f52f07b309d1f.tar.gz bcm5719-llvm-32cb5ac9041865aabd6d84ef410f52f07b309d1f.zip | |
Switch to the new MingW ABI.
GCC 4.7 changed the MingW ABI. On the LLVM side it means that sret functions
don't pop the stack.
llvm-svn: 197163
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 97f96ab72c2..28a6ac0ab25 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -1863,7 +1863,7 @@ static unsigned computeBytesPoppedByCallee(const X86Subtarget &Subtarget, const ImmutableCallSite &CS) { if (Subtarget.is64Bit()) return 0; - if (Subtarget.isTargetWindows()) + if (Subtarget.getTargetTriple().isOSMSVCRT()) return 0; CallingConv::ID CC = CS.getCallingConv(); if (CC == CallingConv::Fast || CC == CallingConv::GHC) |

