[llvm-commits] [llvm] r165207 - /llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
Bill Wendling
isanbard at gmail.com
Wed Oct 3 23:49:41 PDT 2012
Author: void
Date: Thu Oct 4 01:49:41 2012
New Revision: 165207
URL: http://llvm.org/viewvc/llvm-project?rev=165207&view=rev
Log:
Use method to query for attributes.
Modified:
llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
Modified: llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp?rev=165207&r1=165206&r2=165207&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp Thu Oct 4 01:49:41 2012
@@ -153,7 +153,7 @@
SmallPtrSet<Argument*, 8> ArgsToPromote;
SmallPtrSet<Argument*, 8> ByValArgsToTransform;
for (unsigned i = 0; i != PointerArgs.size(); ++i) {
- bool isByVal = F->paramHasAttr(PointerArgs[i].second+1, Attribute::ByVal);
+ bool isByVal=F->getParamAttributes(PointerArgs[i].second+1).hasByValAttr();
Argument *PtrArg = PointerArgs[i].first;
Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType();
More information about the llvm-commits
mailing list