llvm.org GIT mirror llvm / b92c398
[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 David Woodhouse 6 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
244244 baseRegNo = insn.prefixPresent[0x67] ? X86::ESI : X86::RSI;
245245 else if (insn.mode == MODE_32BIT)
246246 baseRegNo = insn.prefixPresent[0x67] ? X86::SI : X86::ESI;
247 else if (insn.mode == MODE_16BIT)
247 else {
248 assert(insn.mode == MODE_16BIT);
248249 baseRegNo = insn.prefixPresent[0x67] ? X86::ESI : X86::SI;
250 }
249251 MCOperand baseReg = MCOperand::CreateReg(baseRegNo);
250252 mcInst.addOperand(baseReg);
251253
268270 baseRegNo = insn.prefixPresent[0x67] ? X86::EDI : X86::RDI;
269271 else if (insn.mode == MODE_32BIT)
270272 baseRegNo = insn.prefixPresent[0x67] ? X86::DI : X86::EDI;
271 else if (insn.mode == MODE_16BIT)
273 else {
274 assert(insn.mode == MODE_16BIT);
272275 baseRegNo = insn.prefixPresent[0x67] ? X86::EDI : X86::DI;
276 }
273277 MCOperand baseReg = MCOperand::CreateReg(baseRegNo);
274278 mcInst.addOperand(baseReg);
275279 return false;