llvm.org GIT mirror llvm / 929b0fb
[x86] Silence unused diReg variable warning in non-asserting builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199812 91177308-0d34-0410-b5e6-96231b3b80d8 David Woodhouse 6 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
13171317 case X86II::Pseudo:
13181318 llvm_unreachable("Pseudo instruction shouldn't be emitted");
13191319 case X86II::RawFrmDstSrc: {
1320 unsigned diReg = MI.getOperand(0).getReg();
13211320 unsigned siReg = MI.getOperand(1).getReg();
1322 assert(((siReg == X86::SI && diReg == X86::DI) ||
1323 (siReg == X86::ESI && diReg == X86::EDI) ||
1324 (siReg == X86::RSI && diReg == X86::RDI)) &&
1321 assert(((siReg == X86::SI && MI.getOperand(0).getReg() == X86::DI) ||
1322 (siReg == X86::ESI && MI.getOperand(0).getReg() == X86::EDI) ||
1323 (siReg == X86::RSI && MI.getOperand(0).getReg() == X86::RDI)) &&
13251324 "SI and DI register sizes do not match");
13261325 // Emit segment override opcode prefix as needed (not for %ds).
13271326 if (MI.getOperand(2).getReg() != X86::DS)