mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
[x86] Fix uninitialized variable warning in translate{Src,Dst}Index
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1856c8aa7
commit
b92c3984b2
@ -245,8 +245,10 @@ static bool translateSrcIndex(MCInst &mcInst, InternalInstruction &insn) {
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::ESI : X86::RSI;
|
||||
else if (insn.mode == MODE_32BIT)
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::SI : X86::ESI;
|
||||
else if (insn.mode == MODE_16BIT)
|
||||
else {
|
||||
assert(insn.mode == MODE_16BIT);
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::ESI : X86::SI;
|
||||
}
|
||||
MCOperand baseReg = MCOperand::CreateReg(baseRegNo);
|
||||
mcInst.addOperand(baseReg);
|
||||
|
||||
@ -269,8 +271,10 @@ static bool translateDstIndex(MCInst &mcInst, InternalInstruction &insn) {
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::EDI : X86::RDI;
|
||||
else if (insn.mode == MODE_32BIT)
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::DI : X86::EDI;
|
||||
else if (insn.mode == MODE_16BIT)
|
||||
else {
|
||||
assert(insn.mode == MODE_16BIT);
|
||||
baseRegNo = insn.prefixPresent[0x67] ? X86::EDI : X86::DI;
|
||||
}
|
||||
MCOperand baseReg = MCOperand::CreateReg(baseRegNo);
|
||||
mcInst.addOperand(baseReg);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user