diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-24 05:47:29 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-24 05:47:29 +0000 |
commit | d5a336cdb5ed691b0288c8d4aa4c5b1899b7e39b (patch) | |
tree | fe6f9ed645974c76aafcf87e6806a8528a274622 /lib/Target | |
parent | b57c292d29f7fdc01a9cc06a4c99f1c3e37105f4 (diff) | |
download | llvm-d5a336cdb5ed691b0288c8d4aa4c5b1899b7e39b.tar.gz llvm-d5a336cdb5ed691b0288c8d4aa4c5b1899b7e39b.tar.bz2 llvm-d5a336cdb5ed691b0288c8d4aa4c5b1899b7e39b.tar.xz |
MipsISelLowering.cpp: Fix a warning. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index a23ffd7288..c01e852410 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -2892,11 +2892,13 @@ const char* MipsTargetLowering:: getMips16HelperFunction (Type* RetTy, ArgListTy &Args, bool &needHelper) const { const unsigned int maxStubNum = 10; - const bool validStubNum[maxStubNum+1] = - {true, true, true, false, false, true, true, false, false, true, true}; const unsigned int stubNum = getMips16HelperFunctionStubNumber(Args); assert(stubNum <= maxStubNum); - assert (validStubNum[stubNum]); +#ifdef NDEBUG + const bool validStubNum[maxStubNum+1] = + {true, true, true, false, false, true, true, false, false, true, true}; + assert(validStubNum[stubNum]); +#endif const char *result; if (RetTy->isFloatTy()) { result = sfMips16Helper[stubNum]; |