diff --git a/lib/cretonne/src/isa/stack.rs b/lib/cretonne/src/isa/stack.rs index ea7ee37248..907afe0208 100644 --- a/lib/cretonne/src/isa/stack.rs +++ b/lib/cretonne/src/isa/stack.rs @@ -41,10 +41,10 @@ impl StackRef { // Offset where SP is pointing. (All ISAs have stacks growing downwards.) let sp_offset = -(size as StackOffset); - return StackRef { + StackRef { base: StackBase::SP, offset: frame[ss].offset - sp_offset, - }; + } } }