Assert that stack_limit is none.

This commit is contained in:
Sergey Pepyakin
2018-06-07 00:06:27 +03:00
committed by Dan Gohman
parent f10682c246
commit e4fe1db3b8

View File

@@ -295,6 +295,10 @@ impl Context {
/// Insert prologue and epilogues after computing the stack frame layout. /// Insert prologue and epilogues after computing the stack frame layout.
pub fn prologue_epilogue(&mut self, isa: &TargetIsa) -> CtonResult { pub fn prologue_epilogue(&mut self, isa: &TargetIsa) -> CtonResult {
assert!(
self.func.stack_limit.is_none(),
"stack_limit isn't implemented yet"
);
isa.prologue_epilogue(&mut self.func)?; isa.prologue_epilogue(&mut self.func)?;
self.verify_if(isa)?; self.verify_if(isa)?;
self.verify_locations_if(isa)?; self.verify_locations_if(isa)?;