diff options
author | Adrian Thurston <thurston@colm.net> | 2018-05-11 16:50:11 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-05-11 16:50:11 -0400 |
commit | 4391ff975a49a0f416bde7c82307989424ef3ff5 (patch) | |
tree | b68648c45dc10f78aa76855fc236d17ca81eda96 /src/bytecode.c | |
parent | 64c2a85de70e2d73bef6ae25e4e7c2483d00878f (diff) | |
download | colm-4391ff975a49a0f416bde7c82307989424ef3ff5.tar.gz |
assert we always have an instruction to return to in PCR_RET
Diffstat (limited to 'src/bytecode.c')
-rw-r--r-- | src/bytecode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index b244a19c..99bff1c6 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -2507,10 +2507,7 @@ again: exec->iframe_ptr = vm_pop_type(tree_t**); exec->frame_ptr = vm_pop_type(tree_t**); - if ( instr == 0 ) { - flush_streams( prg ); - goto out; - } + assert( instr != 0 ); break; } |