Index: lib/Target/X86/X86NaClRewritePass.cpp |
diff --git a/lib/Target/X86/X86NaClRewritePass.cpp b/lib/Target/X86/X86NaClRewritePass.cpp |
index 4ecd55ea8996e74f62f06e0c66236212ecc87388..57d5cd88661b6f98bc494741e936d3cbf5fe7338 100644 |
--- a/lib/Target/X86/X86NaClRewritePass.cpp |
+++ b/lib/Target/X86/X86NaClRewritePass.cpp |
@@ -462,8 +462,9 @@ bool X86NaClRewritePass::ApplyControlSFI(MachineBasicBlock &MBB, |
.addOperand(MI.getOperand(0)) |
.addReg(FlagUseZeroBasedSandbox ? 0 : X86::R15); |
} |
+ |
BuildMI(MBB, MBBI, DL, TII->get(X86::NACL_JMP64r)) |
- .addReg(RegTarget) |
+ .addReg(getX86SubSuperRegister(RegTarget, MVT::i32, false)) |
.addReg(FlagUseZeroBasedSandbox ? 0 : X86::R15); |
} else { |
RegTarget = X86::ECX; |