diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-04-03 11:27:54 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-04-03 11:27:54 +0000 |
commit | eea35066abc904b31dc36d6d6b6ab988b281c854 (patch) | |
tree | 391ec18718919b62dfd10716526838e3dc197048 /lib/Target/X86/X86CallingConv.td | |
parent | e94349fecf510668396a8fa57aaf3e78919cecb3 (diff) | |
download | external_llvm-eea35066abc904b31dc36d6d6b6ab988b281c854.zip external_llvm-eea35066abc904b31dc36d6d6b6ab988b281c854.tar.gz external_llvm-eea35066abc904b31dc36d6d6b6ab988b281c854.tar.bz2 |
Fix SRet for thiscall in i686-pc-win32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86CallingConv.td')
-rw-r--r-- | lib/Target/X86/X86CallingConv.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86CallingConv.td b/lib/Target/X86/X86CallingConv.td index b516be0..9eafbd5 100644 --- a/lib/Target/X86/X86CallingConv.td +++ b/lib/Target/X86/X86CallingConv.td @@ -387,8 +387,8 @@ def CC_X86_32_ThisCall : CallingConv<[ // Promote i8/i16 arguments to i32. CCIfType<[i8, i16], CCPromoteToType<i32>>, - // Pass sret arguments indirectly through EAX - CCIfSRet<CCAssignToReg<[EAX]>>, + // Pass sret arguments indirectly through stack. + CCIfSRet<CCAssignToStack<4, 4>>, // The first integer argument is passed in ECX CCIfType<[i32], CCAssignToReg<[ECX]>>, |