summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-21 22:44:49 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-21 22:44:49 +0000
commitc90d9f89b7d85c6b4ae3692a78046e1496c8537e (patch)
tree4698bab5e4e80201bd516e46994bc43390d780d6 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
parent60ccb9b2a926329de3d49716704c51cf7958b437 (diff)
downloadbcm5719-llvm-c90d9f89b7d85c6b4ae3692a78046e1496c8537e.tar.gz
bcm5719-llvm-c90d9f89b7d85c6b4ae3692a78046e1496c8537e.zip
Have AttributeSet::getRetAttributes() return an AttributeSet instead of Attribute.
This further restricts the use of the Attribute class to the Attribute family of classes. llvm-svn: 173098
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index f3036d82dd5..6d4f1883b69 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1287,10 +1287,10 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS,
// mean appending it. Likewise for attributes.
// Add any result attributes.
- Attribute Attr = Attrs.getRetAttributes();
if (Attrs.hasAttributes(AttributeSet::ReturnIndex))
- NewAttrs.push_back(AttributeWithIndex::get(AttributeSet::ReturnIndex,
- Attr));
+ NewAttrs.push_back(AttributeWithIndex::get(Caller->getContext(),
+ AttributeSet::ReturnIndex,
+ Attrs.getRetAttributes()));
{
unsigned Idx = 1;
@@ -1310,7 +1310,7 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS,
// Add the original argument and attributes.
NewArgs.push_back(*I);
- Attr = Attrs.getParamAttributes(Idx);
+ Attribute Attr = Attrs.getParamAttributes(Idx);
if (Attr.hasAttributes())
NewAttrs.push_back
(AttributeWithIndex::get(Idx + (Idx >= NestIdx), Attr));
OpenPOWER on IntegriCloud