[llvm-commits] [llvm] r165213 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Bill Wendling
isanbard at gmail.com
Thu Oct 4 00:19:46 PDT 2012
Author: void
Date: Thu Oct 4 02:19:46 2012
New Revision: 165213
URL: http://llvm.org/viewvc/llvm-project?rev=165213&view=rev
Log:
Use method to query if there are attributes.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=165213&r1=165212&r2=165213&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Thu Oct 4 02:19:46 2012
@@ -482,7 +482,7 @@
}
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])));
}
More information about the llvm-commits
mailing list