projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
365b9e0
)
Use method to query if there are attributes.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 4 Oct 2012 07:19:46 +0000
(07:19 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 4 Oct 2012 07:19:46 +0000
(07:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165213
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index b69a362896cdb18386cecda85184a67c5f3a6da8..8860ef065c6aab4cbaab9276b62baf110f5baf69 100644
(file)
--- 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])));
}