From: Evan Cheng Date: Mon, 11 Feb 2013 01:18:26 +0000 (+0000) Subject: Remove unnecessary code. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1c640425073f6cb65869ee38a35b3c21cfc6e16;p=platform%2Fupstream%2Fllvm.git Remove unnecessary code. llvm-svn: 174854 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 405e1e8..3a55696 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -6591,10 +6591,6 @@ void SelectionDAGISel::LowerArguments(const BasicBlock *LLVMBB) { const DataLayout *TD = TLI.getDataLayout(); SmallVector Ins; - // Check whether the function can return without sret-demotion. - SmallVector Outs; - GetReturnInfo(F.getReturnType(), F.getAttributes(), Outs, TLI); - if (!FuncInfo->CanLowerReturn) { // Put in an sret pointer parameter before all the other parameters. SmallVector ValueVTs;