mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Do once flag never set to true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -312,9 +312,11 @@ static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) { | |||||||
| #else | #else | ||||||
| #define ASSERT_SORTED(TABLE)                                              \ | #define ASSERT_SORTED(TABLE)                                              \ | ||||||
|   { static bool TABLE##Checked = false;                                   \ |   { static bool TABLE##Checked = false;                                   \ | ||||||
|     if (!TABLE##Checked)                                                  \ |     if (!TABLE##Checked) {                                                \ | ||||||
|        assert(TableIsSorted(TABLE, ARRAY_SIZE(TABLE)) &&                  \ |        assert(TableIsSorted(TABLE, ARRAY_SIZE(TABLE)) &&                  \ | ||||||
|               "All lookup tables must be sorted for efficient access!");  \ |               "All lookup tables must be sorted for efficient access!");  \ | ||||||
|  |        TABLE##Checked = true;                                             \ | ||||||
|  |     }                                                                     \ | ||||||
|   } |   } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user