summaryrefslogtreecommitdiff
path: root/parse/ops.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-06 18:13:50 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-06 18:13:50 -0700
commitccee477034a0a63df7a5864b375a243f8e4f246a (patch)
tree377ad14e171a0dca10ee2325d93eb225664f896c /parse/ops.def
parent685513dd421ded344ae4a4e2c498928fbdbb00aa (diff)
downloadmc-ccee477034a0a63df7a5864b375a243f8e4f246a.tar.gz
Compile error on reaching end of func without return.
Diffstat (limited to 'parse/ops.def')
-rw-r--r--parse/ops.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse/ops.def b/parse/ops.def
index 2569668..caa6f56 100644
--- a/parse/ops.def
+++ b/parse/ops.def
@@ -56,8 +56,9 @@ O(Ostruct, 1, OTmisc, NULL)
O(Oarr, 1, OTmisc, NULL)
/* all below this point are backend-only */
-O(Ocjmp, 1, OTmisc, NULL) /* conditional jump */
-O(Ojtab, 1, OTmisc, NULL) /* jump table */
+O(Odead, 0, OTmisc, "DEAD") /* unreachable code */
+O(Ocjmp, 1, OTmisc, "CJMP") /* conditional jump */
+O(Ojtab, 1, OTmisc, "JTAB") /* jump table */
O(Oset, 1, OTbin, "=") /* store to var */
O(Osllen, 1, OTpre, "SLLEN") /* size of slice */
O(Oslbase, 1, OTpre, "SLBASE") /* base of sice */