about summary refs log tree commit diff stats
path: root/026assert.cc
diff options
context:
space:
mode:
Diffstat (limited to '026assert.cc')
-rw-r--r--026assert.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/026assert.cc b/026assert.cc
index 6ab49db2..b736e1cd 100644
--- a/026assert.cc
+++ b/026assert.cc
@@ -11,6 +11,7 @@ ASSERT,
 Recipe_number["assert"] = ASSERT;
 :(before "End Primitive Recipe Implementations")
 case ASSERT: {
+  assert(!current_instruction().ingredients.empty());
   trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
   vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]);
   assert(arg0.size() == 1);