From 4b54f594b43b15f0fc0ecdc32c7517ced7649633 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Thu, 14 Mar 2013 21:25:04 +0000 Subject: [fast-isel] The X86FastISel::FastLowerArguments function doesn't properly handle the win64 calling convention. rdar://13423768 llvm-svn: 177113 --- llvm/lib/Target/X86/X86FastISel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index b5c32700658..85155f55e0f 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/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; -- cgit v1.2.3