about summary refs log tree commit diff stats
path: root/071rewrite_stash.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-01 14:32:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-01 14:32:49 -0700
commit9406b57a686b42523f1eeb189d56398478bed495 (patch)
treec54208ebbf2b682d9c1b1e1f60175ea48b22724c /071rewrite_stash.cc
parent56538511d15957846ef58e30346b3b08e81174cb (diff)
downloadmu-9406b57a686b42523f1eeb189d56398478bed495.tar.gz
2820
Diffstat (limited to '071rewrite_stash.cc')
-rw-r--r--071rewrite_stash.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/071rewrite_stash.cc b/071rewrite_stash.cc
index a1a3deef..f40bbfb2 100644
--- a/071rewrite_stash.cc
+++ b/071rewrite_stash.cc
@@ -42,7 +42,10 @@ void rewrite_stashes_to_text(recipe& caller) {
     instruction& inst = caller.steps.at(i);
     if (inst.name == "stash") {
       for (int j = 0; j < SIZE(inst.ingredients); ++j) {
-        assert(inst.ingredients.at(j).type);
+        if (!inst.ingredients.at(j).type) {
+          // error; will be handled elsewhere
+          continue;
+        }
         if (is_literal(inst.ingredients.at(j))) continue;
         if (is_mu_string(inst.ingredients.at(j))) continue;
         instruction def;