mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Replace some assert(0)'s with llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -97,7 +97,7 @@ void BitstreamCursor::readAbbreviatedField(const BitCodeAbbrevOp &Op,
|
||||
switch (Op.getEncoding()) {
|
||||
case BitCodeAbbrevOp::Array:
|
||||
case BitCodeAbbrevOp::Blob:
|
||||
assert(0 && "Should not reach here");
|
||||
llvm_unreachable("Should not reach here");
|
||||
case BitCodeAbbrevOp::Fixed:
|
||||
Vals.push_back(Read((unsigned)Op.getEncodingData()));
|
||||
break;
|
||||
@ -117,7 +117,7 @@ void BitstreamCursor::skipAbbreviatedField(const BitCodeAbbrevOp &Op) {
|
||||
switch (Op.getEncoding()) {
|
||||
case BitCodeAbbrevOp::Array:
|
||||
case BitCodeAbbrevOp::Blob:
|
||||
assert(0 && "Should not reach here");
|
||||
llvm_unreachable("Should not reach here");
|
||||
case BitCodeAbbrevOp::Fixed:
|
||||
(void)Read((unsigned)Op.getEncodingData());
|
||||
break;
|
||||
|
Reference in New Issue
Block a user