Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index d7e8d68388bc3ea4f45fc90cc146ef76a471c6ad..556ba867d3a2be9fbdf3ac39fe57eb2352702d34 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -81,7 +81,7 @@ Operand::Operand(Register base, int32_t disp): rex_(0) { |
} |
if (disp == 0 && !base.is(rbp) && !base.is(r13)) { |
- set_modrm(0, rsp); |
+ set_modrm(0, base); |
} else if (is_int8(disp)) { |
set_modrm(1, base); |
set_disp8(disp); |