[llvm-commits] [PATCH] Crash in SplitBlock with incomplete dominator information

Nick Sumner wsumner at cs.purdue.edu
Thu Aug 18 17:00:41 PDT 2011


Hi,

The attached patch fixes a crashing bug in SplitBlock when it is
called on a block with no dominator information even though dominators
were previously computed. This is originally from a bug report
(http://llvm.org/bugs/show_bug.cgi?id=10643), but I am cross-posting
to give it a record in the proper place until it can be committed.

One example of a program suffering from this:

#include <stdlib.h>
#include <stdio.h>

void foo() {
  exit(0);
  printf("No dominator info here\n");
}


thanks,
Nick Sumner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixSplitBlock.diff
Type: text/x-patch
Size: 1122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110818/86dd2195/attachment.bin>


More information about the llvm-commits mailing list