mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 06:30:30 +00:00
Use method to query if there are attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
365b9e0668
commit
47a3395d1d
@ -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])));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user