summaryrefslogtreecommitdiff
path: root/compiler/PureUtils.ml
diff options
context:
space:
mode:
authorNadrieril2024-05-06 12:26:57 +0200
committerGuillaume Boisseau2024-05-14 16:26:47 +0200
commit89f82c504b377f92541b2313256adf525d7b20da (patch)
tree79151f8118306e89da79e8202e2b9fc76d143400 /compiler/PureUtils.ml
parentd7390c53fba81768bfa08645e18dff4f613d7aa4 (diff)
Catch new literal variants
Diffstat (limited to 'compiler/PureUtils.ml')
-rw-r--r--compiler/PureUtils.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/PureUtils.ml b/compiler/PureUtils.ml
index fdd14eba..82a578d9 100644
--- a/compiler/PureUtils.ml
+++ b/compiler/PureUtils.ml
@@ -90,6 +90,9 @@ let compute_literal_type (cv : literal) : literal_type =
| VScalar sv -> TInteger sv.int_ty
| VBool _ -> TBool
| VChar _ -> TChar
+ | VStr _ | VByteStr _ ->
+ craise_opt_meta __FILE__ __LINE__ None
+ "String and byte string literals are unsupported"
let var_get_id (v : var) : VarId.id = v.id