summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-24 05:54:23 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-24 05:54:23 +0000
commitf25b7c68167415e7d9d33ecd9305f8e8cbd89ac6 (patch)
tree5f99a067cc1f71e832d31bb22baac9e606cd42e3 /llvm/lib
parentc77d028bfb4a702d56689966cc410ecc9c3e5edd (diff)
downloadbcm5719-llvm-f25b7c68167415e7d9d33ecd9305f8e8cbd89ac6.tar.gz
bcm5719-llvm-f25b7c68167415e7d9d33ecd9305f8e8cbd89ac6.zip
MipsISelLowering.cpp: Fix a warning, take two. [-Wunused-variable]
...and fix a typo, s/#ifdef/#ifndef/ llvm-svn: 173324
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index c01e8524109..5399b45ee61 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -2891,10 +2891,10 @@ static char const * dcMips16Helper[MAX_STUB_NUMBER+1] =
const char* MipsTargetLowering::
getMips16HelperFunction
(Type* RetTy, ArgListTy &Args, bool &needHelper) const {
- const unsigned int maxStubNum = 10;
const unsigned int stubNum = getMips16HelperFunctionStubNumber(Args);
+#ifndef NDEBUG
+ const unsigned int maxStubNum = 10;
assert(stubNum <= maxStubNum);
-#ifdef NDEBUG
const bool validStubNum[maxStubNum+1] =
{true, true, true, false, false, true, true, false, false, true, true};
assert(validStubNum[stubNum]);
OpenPOWER on IntegriCloud