TranslateArm: Add santity check to see if we've emitted a terminal instruction

This commit is contained in:
MerryMage 2016-08-09 22:47:41 +01:00
parent 2eec43178a
commit d921390928

View file

@ -46,6 +46,8 @@ IR::Block TranslateArm(LocationDescriptor descriptor, MemoryRead32FuncType memor
visitor.ir.block.cond_failed = { visitor.ir.current_location }; visitor.ir.block.cond_failed = { visitor.ir.current_location };
} }
ASSERT_MSG(visitor.ir.block.terminal.which() != 0, "Terminal has not been set");
return std::move(visitor.ir.block); return std::move(visitor.ir.block);
} }