From: Eric Christopher Date: Fri, 6 Dec 2013 02:45:24 +0000 (+0000) Subject: Fix an index array check. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=23b773836cd87988340c9536a16c71ac0f44e5e6;p=oota-llvm.git Fix an index array check. Patch by Marius Wachtler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196561 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/AMDGPUSubtarget.cpp b/lib/Target/R600/AMDGPUSubtarget.cpp index 061793a68b9..b892e7e1d10 100644 --- a/lib/Target/R600/AMDGPUSubtarget.cpp +++ b/lib/Target/R600/AMDGPUSubtarget.cpp @@ -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];