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/Bitcode/Writer/BitcodeWriter.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/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 4ee762eae10..cc6b8b39fbd 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -174,7 +174,7 @@ static void WriteAttributeTable(const ValueEnumerator &VE, const AttributeSet &A = Attrs[i]; for (unsigned i = 0, e = A.getNumSlots(); i != e; ++i) { const AttributeWithIndex &PAWI = A.getSlot(i); - Record.push_back(PAWI.Index); + Record.push_back(A.getSlotIndex(i)); Record.push_back(Attribute::encodeLLVMAttributesForBitcode(PAWI.Attrs)); } |