[llvm-commits] [llvm] r125225 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Feb 9 13:52:06 PST 2011
Author: stoklund
Date: Wed Feb 9 15:52:06 2011
New Revision: 125225
URL: http://llvm.org/viewvc/llvm-project?rev=125225&view=rev
Log:
Assert on bad jump tables.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=125225&r1=125224&r2=125225&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed Feb 9 15:52:06 2011
@@ -1033,6 +1033,7 @@
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:
More information about the llvm-commits
mailing list