Index: src/crankshaft/s390/lithium-codegen-s390.cc |
diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc |
index 9a6c498472b89672482b26fb2c4bf9a53ad4d51f..9fc58f9d811b932348e54858946ae4cbf374256e 100644 |
--- a/src/crankshaft/s390/lithium-codegen-s390.cc |
+++ b/src/crankshaft/s390/lithium-codegen-s390.cc |
@@ -108,7 +108,8 @@ bool LCodeGen::GeneratePrologue() { |
// Prologue logic requires its starting address in ip and the |
// corresponding offset from the function entry. Need to add |
// 4 bytes for the size of AHI/AGHI that AddP expands into. |
- __ AddP(ip, ip, Operand(prologue_offset + sizeof(FourByteInstr))); |
+ prologue_offset += sizeof(FourByteInstr); |
+ __ AddP(ip, ip, Operand(prologue_offset)); |
} |
info()->set_prologue_offset(prologue_offset); |
if (NeedsEagerFrame()) { |