mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
lib/Support/regexec.c: Let Regex LLP64-aware.
On LLP64 Win64, 'states1' (for small version) was expanded to 'char *' for large version. Thus small version would be mischosen when nstates > 32 regardless of sizeof(long) on Win64. llvm-svn: 121942
This commit is contained in:
parent
9b5939da47
commit
b542a59c37
@ -54,8 +54,9 @@
|
||||
#include "regex2.h"
|
||||
|
||||
/* macros for manipulating states, small version */
|
||||
#define states long
|
||||
#define states1 states /* for later use in llvm_regexec() decision */
|
||||
/* FIXME: 'states' is assumed as 'long' on small version. */
|
||||
#define states1 long /* for later use in llvm_regexec() decision */
|
||||
#define states states1
|
||||
#define CLEAR(v) ((v) = 0)
|
||||
#define SET0(v, n) ((v) &= ~((unsigned long)1 << (n)))
|
||||
#define SET1(v, n) ((v) |= (unsigned long)1 << (n))
|
||||
|
Loading…
x
Reference in New Issue
Block a user