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 | 11b11d77ee6eb5b064312ce4064e9c0869e3b168 (patch) | |
tree | 6bb6bafdc604564f02991322b6972fedef39e454 /lib/Target/X86/X86FastISel.cpp | |
parent | 410ca67ab2b7ecef17d2ba71ef48ddcf2163c84a (diff) | |
download | llvm-11b11d77ee6eb5b064312ce4064e9c0869e3b168.tar.gz llvm-11b11d77ee6eb5b064312ce4064e9c0869e3b168.tar.bz2 llvm-11b11d77ee6eb5b064312ce4064e9c0869e3b168.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 97f96ab72c..28a6ac0ab2 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/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) |