Commit 693e633b authored by bmeurer's avatar bmeurer Committed by Commit bot

[x64] Fix strict aliasing error with GCC.

BUG=v8:3872
LOG=n
R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/898953003

Cr-Commit-Position: refs/heads/master@{#26521}
parent 8a144cd4
......@@ -485,7 +485,7 @@ void Assembler::emit_operand(int code, const Operand& adr) {
// Recognize RIP relative addressing.
if (adr.buf_[0] == 5) {
DCHECK_EQ(9u, length);
Label* label = *reinterpret_cast<Label* const*>(&adr.buf_[1]);
Label* label = *bit_cast<Label* const*>(&adr.buf_[1]);
if (label->is_bound()) {
int offset = label->pos() - pc_offset() - sizeof(int32_t);
DCHECK_GE(0, offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment