projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f6364f
)
Assert on bad jump tables.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 9 Feb 2011 21:52:06 +0000
(21:52 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 9 Feb 2011 21:52:06 +0000
(21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125225
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4528a34286cd0892938a2748116ed83e4c84f4ab..bf83f841294bbdd9f6b454140963242c47e294ff 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@
-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: