mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
Use llvm_unreachable instead of assert(!)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c65f7bcf77
commit
19ebadd716
@ -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