[X86][compiler-rt] Attempt to fix a warning about a shift amount being negative in a macro expansion.
llvm-svn: 347516
This commit is contained in:
parent
2c779c0e34
commit
62e5924dd6
|
@ -462,12 +462,12 @@ static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf,
|
|||
unsigned Features2 = 0;
|
||||
unsigned EAX, EBX;
|
||||
|
||||
#define setFeature(F) \
|
||||
do { \
|
||||
if (F < 32) \
|
||||
Features |= 1 << F; \
|
||||
else if (F < 64) \
|
||||
Features2 |= 1 << (F - 32); \
|
||||
#define setFeature(F) \
|
||||
do { \
|
||||
if (F < 32) \
|
||||
Features |= 1 << (F & 0x1f) \
|
||||
else if (F < 64) \
|
||||
Features2 |= 1 << (F & 0x1f); \
|
||||
} while (0)
|
||||
|
||||
if ((EDX >> 15) & 1)
|
||||
|
|
Loading…
Reference in New Issue