mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2837,7 +2837,7 @@ bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
|
||||
}
|
||||
|
||||
switch (ParseInstruction(Inst, BB, PFS)) {
|
||||
default: assert(0 && "Unknown ParseInstruction result!");
|
||||
default: llvm_unreachable("Unknown ParseInstruction result!");
|
||||
case InstError: return true;
|
||||
case InstNormal:
|
||||
BB->getInstList().push_back(Inst);
|
||||
|
Reference in New Issue
Block a user