From db0dbd88682286a2c94edff0935396f8b8fe7ee9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 4 Oct 2012 07:19:46 +0000 Subject: Use method to query if there are attributes. llvm-svn: 165213 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index b69a362..8860ef0 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -482,7 +482,7 @@ bool BitcodeReader::ParseAttributeBlock() { } for (unsigned i = 0, e = Record.size(); i != e; i += 2) { - if (Attributes(Record[i+1]) != Attribute::None) + if (Attributes(Record[i+1]).hasAttributes()) Attrs.push_back(AttributeWithIndex::get(Record[i], Attributes(Record[i+1]))); } -- cgit v1.1