summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-04 07:19:46 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-04 07:19:46 +0000
commitdb0dbd88682286a2c94edff0935396f8b8fe7ee9 (patch)
tree80cc135b9ffc164e0f33df888181051bec02f4af /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentdaf8e38ba87cc4defe6604f37f5af61719ed01a2 (diff)
downloadbcm5719-llvm-db0dbd88682286a2c94edff0935396f8b8fe7ee9.tar.gz
bcm5719-llvm-db0dbd88682286a2c94edff0935396f8b8fe7ee9.zip
Use method to query if there are attributes.
llvm-svn: 165213
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index b69a362896c..8860ef065c6 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])));
}
OpenPOWER on IntegriCloud