@@ -29,6 +29,8 @@ static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn,
FOR_EACH_PTR_REVERSE(parent->insns, one) {
int dominance;
+ if (!one->bb)
+ continue;
if (one == insn)
goto no_dominance;
dominance = dominates(pseudo, insn, one, local);
new file mode 100644
@@ -0,0 +1,22 @@
+char a;
+int b;
+void c(void)
+{
+ if (0) {
+ char *d;
+ for (;;)
+ for (;;)
+e:
+ *d *= (a && 0) ^ b && *d;
+ }
+ goto e;
+}
+
+
+/*
+ * check-name: crash add-doms
+ * check-command: test-linearize $file
+ *
+ * check-error-ignore
+ * check-output-ignore
+ */
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- memops.c | 2 ++ validation/crash-add-doms.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 validation/crash-add-doms.c