[llvm-commits] [llvm] r173324 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jan 23 21:54:23 PST 2013
Author: chapuni
Date: Wed Jan 23 23:54:23 2013
New Revision: 173324
URL: http://llvm.org/viewvc/llvm-project?rev=173324&view=rev
Log:
MipsISelLowering.cpp: Fix a warning, take two. [-Wunused-variable]
...and fix a typo, s/#ifdef/#ifndef/
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=173324&r1=173323&r2=173324&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Wed Jan 23 23:54:23 2013
@@ -2891,10 +2891,10 @@
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]);
More information about the llvm-commits
mailing list