summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit181fb1c4d7d34759e4922636cd0190d26b5fdc2c (patch)
tree4ea4be1f36388bff07b4a4fe131b808cd45271bf /llvm/lib/Target/X86
parent7c860afec6c1cd620fe8c8c2be58476cd916d6cd (diff)
downloadbcm5719-llvm-181fb1c4d7d34759e4922636cd0190d26b5fdc2c.tar.gz
bcm5719-llvm-181fb1c4d7d34759e4922636cd0190d26b5fdc2c.zip
Do once flag never set to true.
llvm-svn: 29214
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 01b1916a898..8bd0276aa47 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud