| Index: src/arm64/instructions-arm64.cc
|
| diff --git a/src/arm64/instructions-arm64.cc b/src/arm64/instructions-arm64.cc
|
| index 9e1b332881ed512911b3930cfa83fccadfa62ebf..7c814f35668e709e55fd0c5d9b931da66b92ab3e 100644
|
| --- a/src/arm64/instructions-arm64.cc
|
| +++ b/src/arm64/instructions-arm64.cc
|
| @@ -233,7 +233,7 @@ void Instruction::SetPCRelImmTarget(Instruction* target) {
|
| // ADRP is not supported, so 'this' must point to an ADR instruction.
|
| ASSERT(IsAdr());
|
|
|
| - int target_offset = DistanceTo(target);
|
| + ptrdiff_t target_offset = DistanceTo(target);
|
| Instr imm;
|
| if (Instruction::IsValidPCRelOffset(target_offset)) {
|
| imm = Assembler::ImmPCRelAddress(target_offset);
|
| @@ -241,7 +241,7 @@ void Instruction::SetPCRelImmTarget(Instruction* target) {
|
| } else {
|
| PatchingAssembler patcher(this,
|
| PatchingAssembler::kAdrFarPatchableNInstrs);
|
| - patcher.PatchAdrFar(target);
|
| + patcher.PatchAdrFar(target_offset);
|
| }
|
| }
|
|
|
|
|