Detect undefined liveins.

This commit is contained in:
Chris Fallin
2021-05-12 01:06:27 -07:00
parent 37fa3ec763
commit 1f9258bea5
2 changed files with 17 additions and 2 deletions

View File

@@ -981,6 +981,8 @@ pub enum RegAllocError {
/// Invalid branch: operand count does not match sum of block
/// params of successor blocks.
Branch(Inst),
/// A VReg is live-in on entry; this is not allowed.
EntryLivein,
}
impl std::fmt::Display for RegAllocError {