From 401baad565218da34558318ebd1f65edb31b39c8 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 27 Jul 2011 00:52:47 +0000 Subject: Fix/workaround for inliner bug uncovered by fin... Fix/workaround for inliner bug uncovered by finalizing Option methods. Something in the backend is leaving open but empty blocks in the worklist. Rather than freaking out at the merest mention of an empty block, I quietly remove the empty ones. A proper fix will involve not leaving empty blocks lying around but we're on a schedule here people. Review by dragos. --- test/files/run/run-bug4840.check | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/files/run/run-bug4840.check (limited to 'test/files/run/run-bug4840.check') diff --git a/test/files/run/run-bug4840.check b/test/files/run/run-bug4840.check new file mode 100644 index 0000000000..cdfc1f911f --- /dev/null +++ b/test/files/run/run-bug4840.check @@ -0,0 +1,2 @@ +Some(5) +Some(Some(Some(5))) -- cgit v1.2.3