diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-13 08:12:17 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-13 08:12:17 +0000 |
commit | ff70c5de69c0bf159a711015671815557b6e278d (patch) | |
tree | fa88c9659b42a09be2773bab77f262004e593e95 /llvm/lib | |
parent | 781f6549dbc4a9a5a7a1eca048b16b9b4c70cde3 (diff) | |
download | bcm5719-llvm-ff70c5de69c0bf159a711015671815557b6e278d.tar.gz bcm5719-llvm-ff70c5de69c0bf159a711015671815557b6e278d.zip |
Small simplification.
llvm-svn: 45932
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 5 |
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. |