Use method to query if there are attributes.
llvm-svn: 165213
This commit is contained in:
1 parent
daf8e38ba8
commit
db0dbd8868
1 file changed
+1
-1
@@ -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])));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user