summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 21:46:52 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 21:46:52 +0000
commit8649283e755272ac0814fec497a63947794a1b90 (patch)
treeb667b074f63127eae31982c918018460477a1983 /llvm/lib/Transforms/InstCombine
parente6abe83258b67ea26417d35a11fb383a2d44e62c (diff)
downloadbcm5719-llvm-8649283e755272ac0814fec497a63947794a1b90.tar.gz
bcm5719-llvm-8649283e755272ac0814fec497a63947794a1b90.zip
Use the new 'getSlotIndex' method to retrieve the attribute's slot index.
llvm-svn: 173499
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 2fd35494b38..8555c2f030d 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1101,7 +1101,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
// won't be dropping them. Check that these extra arguments have attributes
// that are compatible with being a vararg call argument.
for (unsigned i = CallerPAL.getNumSlots(); i; --i) {
- if (CallerPAL.getSlot(i - 1).Index <= FT->getNumParams())
+ if (CallerPAL.getSlotIndex(i - 1) <= FT->getNumParams())
break;
Attribute PAttrs = CallerPAL.getSlot(i - 1).Attrs;
// Check if it has an attribute that's incompatible with varargs.
OpenPOWER on IntegriCloud