diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-21 20:02:45 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-21 20:02:45 +0000 |
commit | f86fee697dea8e278e6a3aa44ceda26a26696964 (patch) | |
tree | 5c3cd3a5a1c94fba97875da36eea6896e02a0ac6 /lib | |
parent | b552df7665675a434d8f60a0535f7ba21b1f7851 (diff) | |
download | external_llvm-f86fee697dea8e278e6a3aa44ceda26a26696964.zip external_llvm-f86fee697dea8e278e6a3aa44ceda26a26696964.tar.gz external_llvm-f86fee697dea8e278e6a3aa44ceda26a26696964.tar.bz2 |
Eliminate a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86FloatingPoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index 6525136..84ed6ba 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -300,11 +300,13 @@ namespace { }; } +#ifndef NDEBUG static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) { for (unsigned i = 0; i != NumEntries-1; ++i) if (!(Table[i] < Table[i+1])) return false; return true; } +#endif static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) { const TableEntry *I = std::lower_bound(Table, Table+N, Opcode); @@ -662,8 +664,10 @@ void FPS::handleOneArgFP(MachineBasicBlock::iterator &I) { /// void FPS::handleOneArgFPRW(MachineBasicBlock::iterator &I) { MachineInstr *MI = I; +#ifndef NDEBUG unsigned NumOps = MI->getDesc().getNumOperands(); assert(NumOps >= 2 && "FPRW instructions must have 2 ops!!"); +#endif // Is this the last use of the source register? unsigned Reg = getFPReg(MI->getOperand(1)); |