From: Benjamin Kramer Date: Sat, 29 Jun 2013 20:04:19 +0000 (+0000) Subject: R600: Unbreak GCC build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=97daabf318ff4751aca49bc1c334d2553b125671;p=oota-llvm.git R600: Unbreak GCC build. operator++ on an enum is not legal. clang happens to accept it anyways, I think that's a known bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/R600InstrInfo.cpp b/lib/Target/R600/R600InstrInfo.cpp index 974a5794505..302e4026627 100644 --- a/lib/Target/R600/R600InstrInfo.cpp +++ b/lib/Target/R600/R600InstrInfo.cpp @@ -398,7 +398,8 @@ NextPossibleSolution( } if (ResetIdx == -1) return false; - SwzCandidate[ResetIdx]++; + int NextSwizzle = SwzCandidate[ResetIdx] + 1; + SwzCandidate[ResetIdx] = (R600InstrInfo::BankSwizzle)NextSwizzle; return true; }