Initialize.
authorDevang Patel <dpatel@apple.com>
Tue, 11 Mar 2008 22:08:21 +0000 (22:08 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 11 Mar 2008 22:08:21 +0000 (22:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/StructRetPromotion.cpp

index 5275edaa1693fd3c0aded33a1981cafd5994332a..686ffdad6be39208a8780c76d0d7bd9649c96144 100644 (file)
@@ -213,7 +213,7 @@ Function *SRETPromotion::cloneFunctionBody(Function *F,
   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 @@ void SRETPromotion::updateCallSites(Function *F, Function *NF) {
     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