aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-03-14 21:25:04 +0000
committerChad Rosier <mcrosier@apple.com>2013-03-14 21:25:04 +0000
commitd9b306a4771106cf1005f8398d944a623bf1a9e9 (patch)
tree1007414c93da904cc20e81cbefb8427ae1d95ac3 /lib/Target/X86/X86FastISel.cpp
parent1754aca83af1658c832706889c0e2933f8dfa8ee (diff)
downloadexternal_llvm-d9b306a4771106cf1005f8398d944a623bf1a9e9.zip
external_llvm-d9b306a4771106cf1005f8398d944a623bf1a9e9.tar.gz
external_llvm-d9b306a4771106cf1005f8398d944a623bf1a9e9.tar.bz2
[fast-isel] The X86FastISel::FastLowerArguments function doesn't properly handle
the win64 calling convention. rdar://13423768 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r--lib/Target/X86/X86FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index b5c3270..85155f5 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -1526,6 +1526,9 @@ bool X86FastISel::FastLowerArguments() {
if (!FuncInfo.CanLowerReturn)
return false;
+ if (Subtarget->isTargetWindows())
+ return false;
+
const Function *F = FuncInfo.Fn;
if (F->isVarArg())
return false;