Skip to content

Commit

Permalink
Adding empty X-extension to avoid zero-length array and fix build (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
kv-sc authored Jan 10, 2025
2 parents de5b30d + cd12cf9 commit be46229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/tools/llvm-snippy/Model/RISCVModel/RVM.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ typedef enum {
#ifdef RVM_FOR_EACH_XEXT
#error RVM_FOR_EACH_XEXT should not be defined at this point
#else
#define RVM_FOR_EACH_XEXT(MACRO)
#define RVM_FOR_EACH_XEXT(MACRO) \
MACRO(RVM_XEXT_EMPTY, empty)
#endif

typedef enum {
Expand Down

0 comments on commit be46229

Please sign in to comment.