projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5a336c
)
MipsISelLowering.cpp: Fix a warning, take two. [-Wunused-variable]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 24 Jan 2013 05:54:23 +0000
(
05:54
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 24 Jan 2013 05:54:23 +0000
(
05:54
+0000)
...and fix a typo, s/#ifdef/#ifndef/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173324
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/MipsISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/MipsISelLowering.cpp
b/lib/Target/Mips/MipsISelLowering.cpp
index c01e852410994f7be5781bc2eba42e449096b351..5399b45ee61ef9ccdb9d7f6b4c4fe0f798df8346 100644
(file)
--- 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]);