Fix an index array check.
[oota-llvm.git] / lib / Target / R600 / AMDGPUSubtarget.cpp
index 061793a68b9dc1b194b2520a3106b98fbe733ee7..b892e7e1d1081ae6b9a428a4acf0eb668e4714f2 100644 (file)
@@ -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];