summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86CallingConv.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-28 18:35:11 +0000
committerChris Lattner <sabre@nondot.org>2007-02-28 18:35:11 +0000
commit70500805d5f5becb8ed57b26eacfc6ee5771f72c (patch)
treef078048837c4af3bd8bd15ee0be2099a6cc91637 /lib/Target/X86/X86CallingConv.td
parentb5d808887aa156a63b8fccbc9c17a20e02daa1df (diff)
downloadllvm-70500805d5f5becb8ed57b26eacfc6ee5771f72c.tar.gz
llvm-70500805d5f5becb8ed57b26eacfc6ee5771f72c.tar.bz2
llvm-70500805d5f5becb8ed57b26eacfc6ee5771f72c.tar.xz
bugfix: fastcall does not require the first two params to be marked 'inreg',
they always get registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86CallingConv.td')
-rw-r--r--lib/Target/X86/X86CallingConv.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86CallingConv.td b/lib/Target/X86/X86CallingConv.td
index f96b040461..d397bf3369 100644
--- a/lib/Target/X86/X86CallingConv.td
+++ b/lib/Target/X86/X86CallingConv.td
@@ -148,7 +148,7 @@ def CC_X86_32_FastCall : CallingConv<[
CCIfType<[i8, i16], CCPromoteToType<i32>>,
// The first 2 integer arguments are passed in ECX/EDX
- CCIfInReg<CCIfType<[i32], CCAssignToReg<[ECX, EDX]>>>,
+ CCIfType<[i32], CCAssignToReg<[ECX, EDX]>>,
// Otherwise, same as everything else.
CCDelegateTo<CC_X86_32_Common>