diff options
author | Duncan Sands <baldrick@free.fr> | 2008-05-27 11:50:51 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-05-27 11:50:51 +0000 |
commit | 43e2a035309f4e353a8bd5547d10125414597e74 (patch) | |
tree | fcf9eed2be7db5aa70cd9cc9b50875cc774c5c2a /lib/Transforms/IPO | |
parent | 3d8710e80acf496657feb092a79d226913742593 (diff) | |
download | llvm-43e2a035309f4e353a8bd5547d10125414597e74.tar.gz llvm-43e2a035309f4e353a8bd5547d10125414597e74.tar.bz2 llvm-43e2a035309f4e353a8bd5547d10125414597e74.tar.xz |
Fix some constructs that gcc-4.4 warns about.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/ArgumentPromotion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index 7dd94f5bc8..7feb1744a0 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -148,7 +148,7 @@ bool ArgPromotion::PromoteArguments(CallGraphNode *CGN) { Argument *PtrArg = PointerArgs[i].first; if (isByVal) { const Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); - if (const StructType *STy = dyn_cast<StructType>(AgTy)) + if (const StructType *STy = dyn_cast<StructType>(AgTy)) { if (maxElements > 0 && STy->getNumElements() > maxElements) { DOUT << "argpromotion disable promoting argument '" << PtrArg->getName() << "' because it would require adding more " @@ -170,6 +170,7 @@ bool ArgPromotion::PromoteArguments(CallGraphNode *CGN) { continue; } } + } } // Otherwise, see if we can promote the pointer to its value. |