Use the AttributeSet instead of AttributeWithIndex object.
authorBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 00:36:48 +0000 (00:36 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 00:36:48 +0000 (00:36 +0000)
llvm-svn: 173598

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

index 4190161..2e1a512 100644 (file)
@@ -437,7 +437,7 @@ bool BitcodeReader::ParseAttributeBlock() {
 
   SmallVector<uint64_t, 64> Record;
 
-  SmallVector<AttributeWithIndex, 8> Attrs;
+  SmallVector<AttributeSet, 8> Attrs;
 
   // Read all the records.
   while (1) {
@@ -472,8 +472,7 @@ bool BitcodeReader::ParseAttributeBlock() {
       for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
         AttrBuilder B(Record[i+1]);
         if (B.hasAttributes())
-          Attrs.push_back(AttributeWithIndex::get(Record[i],
-                                                  Attribute::get(Context, B)));
+          Attrs.push_back(AttributeSet::get(Context, Record[i], B));
       }
 
       MAttributes.push_back(AttributeSet::get(Context, Attrs));