diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index 01b1916a898..8bd0276aa47 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -312,9 +312,11 @@ static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) { #else #define ASSERT_SORTED(TABLE) \ { static bool TABLE##Checked = false; \ - if (!TABLE##Checked) \ + if (!TABLE##Checked) { \ assert(TableIsSorted(TABLE, ARRAY_SIZE(TABLE)) && \ "All lookup tables must be sorted for efficient access!"); \ + TABLE##Checked = true; \ + } \ } #endif