mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +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:
parent
4f6364fd3f
commit
e5005d0062
@ -1033,6 +1033,7 @@ void AsmPrinter::EmitJumpTableInfo() {
|
||||
void AsmPrinter::EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
||||
const MachineBasicBlock *MBB,
|
||||
unsigned UID) const {
|
||||
assert(MBB && MBB->getNumber() >= 0 && "Invalid basic block");
|
||||
const MCExpr *Value = 0;
|
||||
switch (MJTI->getEntryKind()) {
|
||||
case MachineJumpTableInfo::EK_Inline:
|
||||
|
Loading…
x
Reference in New Issue
Block a user