Assert that stack_limit is none.
This commit is contained in:
committed by
Dan Gohman
parent
f10682c246
commit
e4fe1db3b8
@@ -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)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user