[llvm] r175373 - GCC doesn't like ++ on enums.
Benjamin Kramer
benny.kra at googlemail.com
Sat Feb 16 11:22:28 PST 2013
Author: d0k
Date: Sat Feb 16 13:22:28 2013
New Revision: 175373
URL: http://llvm.org/viewvc/llvm-project?rev=175373&view=rev
Log:
GCC doesn't like ++ on enums.
Modified:
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=175373&r1=175372&r2=175373&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Sat Feb 16 13:22:28 2013
@@ -596,7 +596,7 @@ AttributeSet AttributeSet::get(LLVMConte
// Add target-independent attributes.
SmallVector<std::pair<unsigned, Attribute>, 8> Attrs;
for (Attribute::AttrKind Kind = Attribute::None;
- Kind != Attribute::EndAttrKinds; ++Kind) {
+ Kind != Attribute::EndAttrKinds; Kind = Attribute::AttrKind(Kind + 1)) {
if (!B.contains(Kind))
continue;
More information about the llvm-commits
mailing list