From 0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 27 Jan 2013 00:36:48 +0000 Subject: Use the AttributeSet instead of AttributeWithIndex object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173598 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/Bitcode/Reader') diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 4190161b62..2e1a5125fe 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -437,7 +437,7 @@ bool BitcodeReader::ParseAttributeBlock() { SmallVector Record; - SmallVector Attrs; + SmallVector 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)); -- cgit v1.2.3