Use llvm_unreachable instead of assert(!)

llvm-svn: 218222
This commit is contained in:
Matt Arsenault 2014-09-21 17:27:31 +00:00
parent 3673eba568
commit 393366c691
1 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
const MCExpr *Exp = Op.getExpr();
Exp->print(O);
} else {
assert(!"unknown operand type in printOperand");
llvm_unreachable("unknown operand type in printOperand");
}
}
@ -259,7 +259,7 @@ void AMDGPUInstPrinter::printInterpSlot(const MCInst *MI, unsigned OpNum,
} else if (Imm == 0) {
O << "P10";
} else {
assert(!"Invalid interpolation parameter slot");
llvm_unreachable("Invalid interpolation parameter slot");
}
}