diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-25 21:46:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-25 21:46:52 +0000 |
commit | 8649283e755272ac0814fec497a63947794a1b90 (patch) | |
tree | b667b074f63127eae31982c918018460477a1983 /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | e6abe83258b67ea26417d35a11fb383a2d44e62c (diff) | |
download | bcm5719-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/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 50bfef5127a..2560c6e6c47 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -473,7 +473,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL, Out << "SmallVector<AttributeWithIndex, 4> Attrs;"; nl(Out); Out << "AttributeWithIndex PAWI;"; nl(Out); for (unsigned i = 0; i < PAL.getNumSlots(); ++i) { - unsigned index = PAL.getSlot(i).Index; + unsigned index = PAL.getSlotIndex(i); AttrBuilder attrs(PAL.getSlot(i).Attrs); Out << "PAWI.Index = " << index << "U;\n"; Out << " {\n AttrBuilder B;\n"; |