mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
MipsISelLowering.cpp: Fix a warning. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b57c292d29
commit
d5a336cdb5
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user