asm: Fix "impossible constraint in asm" error by replacing __auto_type with enum in __WARN_FLAGS macro

This commit is contained in:
CookedMelon 2024-09-19 17:50:44 +08:00
parent 932d2d1fcb
commit 25f34fb9ad

View File

@ -90,7 +90,7 @@ do { \
*/
#define __WARN_FLAGS(flags) \
do { \
__auto_type __flags = BUGFLAG_WARNING|(flags); \
enum{ __flags = BUGFLAG_WARNING|(flags)}; \
instrumentation_begin(); \
_BUG_FLAGS(ASM_UD2, __flags, ASM_REACHABLE); \
instrumentation_end(); \