Remove unnecessary code.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 11 Feb 2013 01:18:26 +0000 (01:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 11 Feb 2013 01:18:26 +0000 (01:18 +0000)
llvm-svn: 174854

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 405e1e8..3a55696 100644 (file)
@@ -6591,10 +6591,6 @@ void SelectionDAGISel::LowerArguments(const BasicBlock *LLVMBB) {
   const DataLayout *TD = TLI.getDataLayout();
   SmallVector<ISD::InputArg, 16> Ins;
 
-  // Check whether the function can return without sret-demotion.
-  SmallVector<ISD::OutputArg, 4> Outs;
-  GetReturnInfo(F.getReturnType(), F.getAttributes(), Outs, TLI);
-
   if (!FuncInfo->CanLowerReturn) {
     // Put in an sret pointer parameter before all the other parameters.
     SmallVector<EVT, 1> ValueVTs;