mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Assert on bad jump tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1033,6 +1033,7 @@ void AsmPrinter::EmitJumpTableInfo() {
|
|||||||
void AsmPrinter::EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
void AsmPrinter::EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
||||||
const MachineBasicBlock *MBB,
|
const MachineBasicBlock *MBB,
|
||||||
unsigned UID) const {
|
unsigned UID) const {
|
||||||
|
assert(MBB && MBB->getNumber() >= 0 && "Invalid basic block");
|
||||||
const MCExpr *Value = 0;
|
const MCExpr *Value = 0;
|
||||||
switch (MJTI->getEntryKind()) {
|
switch (MJTI->getEntryKind()) {
|
||||||
case MachineJumpTableInfo::EK_Inline:
|
case MachineJumpTableInfo::EK_Inline:
|
||||||
|
Reference in New Issue
Block a user