diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-01 14:32:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-01 14:32:49 -0700 |
commit | 9406b57a686b42523f1eeb189d56398478bed495 (patch) | |
tree | c54208ebbf2b682d9c1b1e1f60175ea48b22724c | |
parent | 56538511d15957846ef58e30346b3b08e81174cb (diff) | |
download | mu-9406b57a686b42523f1eeb189d56398478bed495.tar.gz |
2820
-rw-r--r-- | 071rewrite_stash.cc | 5 |
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; |