summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2013-02-11 01:18:26 +0000
committerEvan Cheng <evan.cheng@apple.com>2013-02-11 01:18:26 +0000
commitd1c640425073f6cb65869ee38a35b3c21cfc6e16 (patch)
treea9cef3e287edb99919ec74810306de9f29af4545
parentb78e9e59ca9cf03ed024d43d6eb7bc92b7d995ff (diff)
downloadbcm5719-llvm-d1c640425073f6cb65869ee38a35b3c21cfc6e16.tar.gz
bcm5719-llvm-d1c640425073f6cb65869ee38a35b3c21cfc6e16.zip
Remove unnecessary code.
llvm-svn: 174854
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 405e1e8defb..3a5569614cd 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<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;
OpenPOWER on IntegriCloud