increment → reserve.

This commit is contained in:
Sergey Pepyakin
2018-11-28 13:53:10 +01:00
committed by Dan Gohman
parent aa5643b9b5
commit 13c36612b5
2 changed files with 9 additions and 9 deletions

View File

@@ -73,9 +73,9 @@ impl ControlFrame {
pub fn outgoing_stack_depth(&self) -> StackDepth {
let mut outgoing_stack_depth = self.stack_depth;
if self.ty != Type::EmptyBlockType {
// If there a return value then increment expected outgoing stack depth value
// If there a return value then reserve expected outgoing stack depth value
// to account for the result value.
outgoing_stack_depth.increment();
outgoing_stack_depth.reserve(1);
}
outgoing_stack_depth
}