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 | c77d028bfb4a702d56689966cc410ecc9c3e5edd (patch) | |
| tree | dc2757246e5e84e458b99588029d784e4e2d7063 /llvm/lib/Target | |
| parent | 3529aa5fc2e47635521544165c43d5ca7228d131 (diff) | |
| download | bcm5719-llvm-c77d028bfb4a702d56689966cc410ecc9c3e5edd.tar.gz bcm5719-llvm-c77d028bfb4a702d56689966cc410ecc9c3e5edd.zip | |
MipsISelLowering.cpp: Fix a warning. [-Wunused-variable]
llvm-svn: 173323
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index a23ffd7288a..c01e8524109 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/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]; |

