diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 00:37:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 00:37:29 -0800 |
commit | ef96f57ce264c8e0bd98f6e8622d1c1e2eceafb2 (patch) | |
tree | f2113d385fde9c4b9579521402eab5ec9c1f208d /041jump_target.cc | |
parent | 7ecb3374340c02cc2c54abf4a5d4a617f362b4c4 (diff) | |
download | mu-ef96f57ce264c8e0bd98f6e8622d1c1e2eceafb2.tar.gz |
2441 - never miss any specializations
I was failing to specialize calls containing literals. And then I had to deal with whether literals should map to numbers or characters. (Answer: both.) One of the issues that still remains: shape-shifting recipes can't be called with literals for addresses, even if it's 0.
Diffstat (limited to '041jump_target.cc')
-rw-r--r-- | 041jump_target.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/041jump_target.cc b/041jump_target.cc index 0155ae89..00e9fc39 100644 --- a/041jump_target.cc +++ b/041jump_target.cc @@ -64,7 +64,7 @@ void replace_offset(reagent& x, /*const*/ map<string, long long int>& offset, co x.set_value(0); // no jump by default return; } - assert(!x.initialized); + if (x.initialized) return; if (is_integer(x.name)) return; // non-labels will be handled like other number operands if (!is_jump_target(x.name)) { raise_error << maybe(get(Recipe, r).name) << "can't jump to label " << x.name << '\n' << end(); |