diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-24 05:54:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-24 05:54:23 +0000 |
commit | 00cdf602ae73e039c5d5244bae4bffb5e6455096 (patch) | |
tree | cf29b3835f7ee7de16cba456a006df7eb3f0073e /lib/Target/Mips/MipsISelLowering.cpp | |
parent | d5a336cdb5ed691b0288c8d4aa4c5b1899b7e39b (diff) | |
download | external_llvm-00cdf602ae73e039c5d5244bae4bffb5e6455096.zip external_llvm-00cdf602ae73e039c5d5244bae4bffb5e6455096.tar.gz external_llvm-00cdf602ae73e039c5d5244bae4bffb5e6455096.tar.bz2 |
MipsISelLowering.cpp: Fix a warning, take two. [-Wunused-variable]
...and fix a typo, s/#ifdef/#ifndef/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index c01e852..5399b45 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/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]); |