Simplify code for calling a function where CanLowerReturn fails, fixing a small bug...
[oota-llvm.git] / lib / Target / X86 / X86FastISel.cpp
index 1b62357275bed1dc7399b0a13a4deaca3722ad55..07d0e7647a273ea49c51bfa84dd6510f3a2a34e7 100644 (file)
@@ -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());