[llvm-commits] [llvm] r45932 - /llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp

Duncan Sands baldrick at free.fr
Sun Jan 13 00:12:17 PST 2008


Author: baldrick
Date: Sun Jan 13 02:12:17 2008
New Revision: 45932

URL: http://llvm.org/viewvc/llvm-project?rev=45932&view=rev
Log:
Small simplification.

Modified:
    llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp

Modified: llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp?rev=45932&r1=45931&r2=45932&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp Sun Jan 13 02:12:17 2008
@@ -456,10 +456,7 @@
 
   // 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.





More information about the llvm-commits mailing list