[llvm] r196561 - Fix an index array check.
Eric Christopher
echristo at gmail.com
Thu Dec 5 18:45:24 PST 2013
Author: echristo
Date: Thu Dec 5 20:45:24 2013
New Revision: 196561
URL: http://llvm.org/viewvc/llvm-project?rev=196561&view=rev
Log:
Fix an index array check.
Patch by Marius Wachtler.
Modified:
llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp?rev=196561&r1=196560&r2=196561&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp Thu Dec 5 20:45:24 2013
@@ -80,7 +80,7 @@ AMDGPUSubtarget::isTargetELF() const {
}
size_t
AMDGPUSubtarget::getDefaultSize(uint32_t dim) const {
- if (dim > 3) {
+ if (dim > 2) {
return 1;
} else {
return DefaultSize[dim];
More information about the llvm-commits
mailing list