summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-13 08:12:17 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-13 08:12:17 +0000
commitff70c5de69c0bf159a711015671815557b6e278d (patch)
treefa88c9659b42a09be2773bab77f262004e593e95
parent781f6549dbc4a9a5a7a1eca048b16b9b4c70cde3 (diff)
downloadbcm5719-llvm-ff70c5de69c0bf159a711015671815557b6e278d.tar.gz
bcm5719-llvm-ff70c5de69c0bf159a711015671815557b6e278d.zip
Small simplification.
llvm-svn: 45932
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 9acd516123d..073d752af0f 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -456,10 +456,7 @@ Function *ArgPromotion::DoPromotion(Function *F,
// Recompute the parameter attributes list based on the new arguments for
// the function.
- if (ParamAttrsVec.empty())
- PAL = 0;
- else
- PAL = ParamAttrsList::get(ParamAttrsVec);
+ PAL = ParamAttrsList::get(ParamAttrsVec);
// Work around LLVM bug PR56: the CWriter cannot emit varargs functions which
// have zero fixed arguments.
OpenPOWER on IntegriCloud