summaryrefslogtreecommitdiff
path: root/lib/Bitcode
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
commit47a3395d1d2b5fb2829462ca399458ea3214fe22 (patch)
treefab206ca8e503bfe28622b0928b6377f9ef6713d /lib/Bitcode
parent365b9e0668d44038fa0c2739060c26acae12066e (diff)
downloadllvm-47a3395d1d2b5fb2829462ca399458ea3214fe22.tar.gz
llvm-47a3395d1d2b5fb2829462ca399458ea3214fe22.tar.bz2
llvm-47a3395d1d2b5fb2829462ca399458ea3214fe22.tar.xz
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index b69a362896..8860ef065c 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/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])));
}