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 | e3a8830c1d263b41ee114d7cb3fd50d240ec32b3 (patch) | |
tree | 36c4e6b069980c9a14da7392c35c55fb49b96890 /lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | e1e520f601f3b0186eab1bdf7df4a54d0c640a3e (diff) | |
download | llvm-e3a8830c1d263b41ee114d7cb3fd50d240ec32b3.tar.gz llvm-e3a8830c1d263b41ee114d7cb3fd50d240ec32b3.tar.bz2 llvm-e3a8830c1d263b41ee114d7cb3fd50d240ec32b3.tar.xz |
Small simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | lib/Transforms/IPO/ArgumentPromotion.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index 9acd516123..073d752af0 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/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. |