aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-07-19 19:33:08 +0000
committerJim Laskey <jlaskey@mac.com>2006-07-19 19:33:08 +0000
commitc06fe8a5ac41ff407af25395f58d15c650f5b266 (patch)
tree5a2d20036cda1be44e078ef38906c6126db6fae1 /lib/Target/X86
parent613f1f83fd183681cb7a2c68ea3b63aa6c44befb (diff)
Do once flag never set to true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86FloatingPoint.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp
index 01b1916a89..8bd0276aa4 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