aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--amd64/isel.c2
-rw-r--r--ir/ir.h1
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,
diff --git a/ir/ir.h b/ir/ir.h
index 149a74b..4c369a1 100644
--- a/ir/ir.h
+++ b/ir/ir.h
@@ -84,6 +84,7 @@ enum op {
#define _(o,...) O##o,
#include "op.def"
#undef _
+ NOPER,
};
#define oiscmp(o) in_range(o, Oequ, Ougte)