Skip to content

Commit

Permalink
Do typeof manually for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Jan 22, 2024
1 parent d527d21 commit 8fc1513
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/AArch64/AArch64AddressingModes.h
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ static inline uint64_t AArch64_AM_decodeAdvSIMDModImmType12(uint8_t Imm)
static inline bool CONCAT(AArch64_AM_isSVEMaskOfIdenticalElements, T)(int64_t Imm) \
{ \
union { \
typeof(Imm) In; \
int64_t In; \
T Out[sizeof(int64_t) / sizeof(T)]; \
} U_Parts; \
U_Parts.In = Imm; \
Expand Down Expand Up @@ -888,19 +888,19 @@ AArch64_AM_isSVEMoveMaskPreferredLogicalImmediate(int64_t Imm)
return false;

union {
typeof(Imm) In;
int64_t In;
int32_t Out[2];
} U_S;
U_S.In = Imm;
int32_t *S = U_S.Out;
union {
typeof(Imm) In;
int64_t In;
int16_t Out[4];
} U_H;
U_H.In = Imm;
int16_t *H = U_H.Out;
union {
typeof(Imm) In;
int64_t In;
int8_t Out[8];
} U_B;
U_B.In = Imm;
Expand Down

0 comments on commit 8fc1513

Please sign in to comment.