diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-24 01:03:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-24 01:03:55 -0700 |
commit | 7a8db77002a2ab90c923dffac18128defe47c177 (patch) | |
tree | fbc47f85834dfa31809bdc63e12c90635ac5c127 /030container.cc | |
parent | 0b1d1b202667f69de44fe989b3838c06a4a42619 (diff) | |
download | mu-7a8db77002a2ab90c923dffac18128defe47c177.tar.gz |
1832
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc index c49aa877..2263833c 100644 --- a/030container.cc +++ b/030container.cc @@ -111,7 +111,10 @@ case GET: { raise << current_recipe_name () << ": 'get' on a non-container " << base.original_string << '\n'; break; } - assert(is_literal(current_instruction().ingredients.at(1))); + if (!is_literal(current_instruction().ingredients.at(1))) { + raise << current_recipe_name() << ": expected ingredient 1 of 'get' to have type 'offset', got '" << current_instruction().ingredients.at(1).original_string << "'\n"; + break; + } assert(scalar(ingredients.at(1))); long long int offset = ingredients.at(1).at(0); long long int src = base_address; |