From cb84829174ac11c12fd74d5aa066e62d48fd9a6e Mon Sep 17 00:00:00 2001 From: Alan Li Date: Fri, 22 Nov 2019 17:30:35 -0500 Subject: [PATCH] Issue #28: fix frame object strides. --- lib/Target/EVM/EVMRegisterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/EVM/EVMRegisterInfo.cpp b/lib/Target/EVM/EVMRegisterInfo.cpp index 11f4f6bac3f16..3dccdd49e9c54 100644 --- a/lib/Target/EVM/EVMRegisterInfo.cpp +++ b/lib/Target/EVM/EVMRegisterInfo.cpp @@ -82,7 +82,7 @@ void EVMRegisterInfo::eliminateFrameIndex( int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); Register FrameReg = getFrameRegister(MF); - int Offset = MF.getFrameInfo().getObjectOffset(FrameIndex) * 32; + int Offset = MF.getFrameInfo().getObjectOffset(FrameIndex); unsigned fiReg = FrameReg; if (Offset != 0) {