aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/StructRetPromotion.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-11 22:08:21 +0000
committerDevang Patel <dpatel@apple.com>2008-03-11 22:08:21 +0000
commita0238778db5f96fc1dd104cd3c0c8e024f5e24b3 (patch)
tree1e39ab008cc89fb1f42e9ff02a42855b9df3d3ba /lib/Transforms/IPO/StructRetPromotion.cpp
parent882d87d168374ce790621e9ad4d7304b9dff0d78 (diff)
Initialize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/StructRetPromotion.cpp')
-rw-r--r--lib/Transforms/IPO/StructRetPromotion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/StructRetPromotion.cpp b/lib/Transforms/IPO/StructRetPromotion.cpp
index 5275edaa16..686ffdad6b 100644
--- a/lib/Transforms/IPO/StructRetPromotion.cpp
+++ b/lib/Transforms/IPO/StructRetPromotion.cpp
@@ -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