summaryrefslogtreecommitdiff
path: root/src/Pure.ml
diff options
context:
space:
mode:
authorSon Ho2022-02-03 20:05:35 +0100
committerSon Ho2022-02-03 20:05:35 +0100
commitf674791b2c89f3ed0def6c9cf543bb48410c7229 (patch)
tree8eebc79edb7230d3379df086db8a706a812aa05e /src/Pure.ml
parent5eacfc7cdbe99f401d6cf925cbb50d63c3a780c3 (diff)
Implement extraction of switch int and make extract_texpression return
unit instead of [extraction_ctx]
Diffstat (limited to 'src/Pure.ml')
-rw-r--r--src/Pure.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Pure.ml b/src/Pure.ml
index fd3eb03f..c1dbaa13 100644
--- a/src/Pure.ml
+++ b/src/Pure.ml
@@ -505,7 +505,8 @@ and switch_body =
| If of texpression * texpression
| SwitchInt of integer_type * (scalar_value * texpression) list * texpression
| Match of match_branch list
-(* TODO: we could (should?) merge SwitchInt and Match *)
+(* TODO: merge SwitchInt and Match. In order to do that,
+ * we need to add constants to lvalues. *)
and match_branch = { pat : typed_lvalue; branch : texpression }