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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2010-12-16 01:48:15 +00:00
parent 656b3d22f7
commit ad3ea3d85f

View File

@ -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))