[llvm-commits] [llvm] r48253 - /llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp

Devang Patel dpatel at apple.com
Tue Mar 11 15:08:21 PDT 2008


Author: dpatel
Date: Tue Mar 11 17:08:21 2008
New Revision: 48253

URL: http://llvm.org/viewvc/llvm-project?rev=48253&view=rev
Log:
Initialize.

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

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

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp Tue Mar 11 17:08:21 2008
@@ -213,7 +213,7 @@
   unsigned ParamIndex = 1; // 0th parameter attribute is reserved for return type.
   while (I != E) {
     Params.push_back(I->getType());
-    ParameterAttributes Attrs;
+    ParameterAttributes Attrs = ParamAttr::None;
     if (PAL) {
       Attrs = PAL->getParamAttrs(ParamIndex);
       if (ParamIndex == 1) // Skip sret attribute
@@ -272,7 +272,7 @@
     unsigned ParamIndex = 1; // 0th parameter attribute is reserved for return type.
     while (AI != AE) {
       Args.push_back(*AI); 
-      ParameterAttributes Attrs;
+      ParameterAttributes Attrs = ParamAttr::None;
       if (PAL) {
         Attrs = PAL->getParamAttrs(ParamIndex);
         if (ParamIndex == 1) // Skip sret attribute





More information about the llvm-commits mailing list