TranslateArm: Add santity check to see if we've emitted a terminal instruction
This commit is contained in:
parent
2eec43178a
commit
d921390928
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue