summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commitf6269f0914951c0c3b888efb16ec7735964d9220 (patch)
tree9ba258824cd669bea5f7f9546b937c53c60056e7 /llvm/lib/Transforms
parent20af5a0fe7b8671b0961a5a4acc55b55219a055b (diff)
downloadbcm5719-llvm-f6269f0914951c0c3b888efb16ec7735964d9220.tar.gz
bcm5719-llvm-f6269f0914951c0c3b888efb16ec7735964d9220.zip
Initialize.
llvm-svn: 48253
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/StructRetPromotion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
index 5275edaa169..686ffdad6be 100644
--- a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud