diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-16 19:22:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-16 19:22:28 +0000 |
commit | 7c1461252b7ee8b3b5a556993cb7b96d793223b6 (patch) | |
tree | aefec2dec233eca30d5832a73a917fb4202c1172 | |
parent | 886a7663c72cb04eaee58cb6997c394f5096a8b9 (diff) | |
download | external_llvm-7c1461252b7ee8b3b5a556993cb7b96d793223b6.zip external_llvm-7c1461252b7ee8b3b5a556993cb7b96d793223b6.tar.gz external_llvm-7c1461252b7ee8b3b5a556993cb7b96d793223b6.tar.bz2 |
GCC doesn't like ++ on enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175373 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/IR/Attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 99df5ff..77a1c82 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -596,7 +596,7 @@ AttributeSet AttributeSet::get(LLVMContext &C, unsigned Idx, AttrBuilder &B) { // 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; |