diff options
| -rw-r--r-- | amd64/isel.c | 2 | ||||
| -rw-r--r-- | ir/ir.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/amd64/isel.c b/amd64/isel.c index 6856b72..8108ec4 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -10,7 +10,7 @@ enum flag { }; /* flags modified by each integer op */ -static const uchar opflags[] = { +static const uchar opflags[NOPER] = { [Oneg] = ZF|CLOBF, [Oadd] = ZF|CLOBF, [Osub] = ZF|CLOBF, @@ -84,6 +84,7 @@ enum op { #define _(o,...) O##o, #include "op.def" #undef _ + NOPER, }; #define oiscmp(o) in_range(o, Oequ, Ougte) |