Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index d90655b095b13f1875afaa9ba2c5ef592ba3dd9a..9ad94ce0f4f345293ccf27cdf086ac2990ab5892 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -253,7 +253,7 @@ Operand::Operand(const Operand& operand, int32_t offset) { |
int32_t disp_value = 0; |
if (mode == 0x80 || is_baseless) { |
// Mode 2 or mode 0 with rbp/r13 as base: Word displacement. |
- disp_value = *reinterpret_cast<const int32_t*>(&operand.buf_[disp_offset]); |
+ disp_value = *BitCast<const int32_t*>(&operand.buf_[disp_offset]); |
} else if (mode == 0x40) { |
// Mode 1: Byte displacement. |
disp_value = static_cast<signed char>(operand.buf_[disp_offset]); |