mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Use llvm_unreachable instead of assert(!)
llvm-svn: 218222
This commit is contained in:
parent
d266054496
commit
5ec2f665df
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user