summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-30 12:45:13 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-30 12:45:13 +0000
commit94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d (patch)
tree991904a44655868e39a348ad3e712f88af9cfa1b /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
parent5e85be4326a46a32159494c65d3fa177a0f05588 (diff)
downloadbcm5719-llvm-94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d.tar.gz
bcm5719-llvm-94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d.zip
Remove Function::getParamAttributes and use the AttributeSet accessor methods instead.
llvm-svn: 171255
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 8fb19b09eed..5ae12c27261 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -153,8 +153,8 @@ CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) {
SmallPtrSet<Argument*, 8> ArgsToPromote;
SmallPtrSet<Argument*, 8> ByValArgsToTransform;
for (unsigned i = 0; i != PointerArgs.size(); ++i) {
- bool isByVal=F->getParamAttributes(PointerArgs[i].second+1).
- hasAttribute(Attribute::ByVal);
+ bool isByVal=F->getAttributes().
+ hasAttribute(PointerArgs[i].second+1, Attribute::ByVal);
Argument *PtrArg = PointerArgs[i].first;
Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType();
OpenPOWER on IntegriCloud