about summary refs log tree commit diff stats
path: root/041name.cc
diff options
context:
space:
mode:
Diffstat (limited to '041name.cc')
-rw-r--r--041name.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/041name.cc b/041name.cc
index e2c1d940..f87b1868 100644
--- a/041name.cc
+++ b/041name.cc
@@ -225,7 +225,8 @@ if (inst.operation == Recipe_number["get"]
   // at least 2 args, and second arg is offset
   assert(SIZE(inst.ingredients) >= 2);
 //?   cout << inst.ingredients.at(1).to_string() << '\n'; //? 1
-  assert(is_literal(inst.ingredients.at(1)));
+  if (!is_literal(inst.ingredients.at(1)))
+    raise << inst.to_string() << ": expected literal; got " << inst.ingredients.at(1).to_string() << '\n' << die();
   if (inst.ingredients.at(1).name.find_first_not_of("0123456789") != string::npos) {
     // since first non-address in base type must be a container, we don't have to canonize
     type_number base_type = skip_addresses(inst.ingredients.at(0).types);