[llvm] r185269 - R600: Unbreak GCC build.
Benjamin Kramer
benny.kra at googlemail.com
Sat Jun 29 13:04:20 PDT 2013
Author: d0k
Date: Sat Jun 29 15:04:19 2013
New Revision: 185269
URL: http://llvm.org/viewvc/llvm-project?rev=185269&view=rev
Log:
R600: Unbreak GCC build.
operator++ on an enum is not legal. clang happens to accept it anyways, I think
that's a known bug.
Modified:
llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
Modified: llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600InstrInfo.cpp?rev=185269&r1=185268&r2=185269&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600InstrInfo.cpp Sat Jun 29 15:04:19 2013
@@ -398,7 +398,8 @@ NextPossibleSolution(
}
if (ResetIdx == -1)
return false;
- SwzCandidate[ResetIdx]++;
+ int NextSwizzle = SwzCandidate[ResetIdx] + 1;
+ SwzCandidate[ResetIdx] = (R600InstrInfo::BankSwizzle)NextSwizzle;
return true;
}
More information about the llvm-commits
mailing list