aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-05-25 00:09:29 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-05-25 00:09:29 +0000
commit2db0e9ebb600a2e6b8f651f66a1ef50e0d3c3c6b (patch)
tree63f4bdf50a470d00a8f3911b00455f70457605cb /lib/Target/X86/X86FastISel.cpp
parent5402efa3dce1902003094f701fc090e78a5ad557 (diff)
downloadexternal_llvm-2db0e9ebb600a2e6b8f651f66a1ef50e0d3c3c6b.zip
external_llvm-2db0e9ebb600a2e6b8f651f66a1ef50e0d3c3c6b.tar.gz
external_llvm-2db0e9ebb600a2e6b8f651f66a1ef50e0d3c3c6b.tar.bz2
Simplify code for calling a function where CanLowerReturn fails, fixing a small bug in the process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r--lib/Target/X86/X86FastISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 1b62357..07d0e76 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -1549,9 +1549,8 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {
// Check whether the function can return without sret-demotion.
SmallVector<ISD::OutputArg, 4> Outs;
- SmallVector<uint64_t, 4> Offsets;
GetReturnInfo(I->getType(), CS.getAttributes().getRetAttributes(),
- Outs, TLI, &Offsets);
+ Outs, TLI);
bool CanLowerReturn = TLI.CanLowerReturn(CS.getCallingConv(),
*FuncInfo.MF, FTy->isVarArg(),
Outs, FTy->getContext());