From a57ac60dbb115b90ca1ccc9944199bf3e82d517d Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Mon, 13 Feb 2012 11:54:10 +0100 Subject: [vpm] working type switch for try/catch catch handlers are now also translated by the virtualizing pattern matcher emit type-based switches when possible, fallback to catch-all with full pattern match (the logic used to emit constant-based switches was generalized to type-based switches, abstracting out how to refer to the scrutinee and the shape of a default/catch-all case) this was the last missing piece of essential functionality now the virtualizing pattern matcher and the old one are mutually exclusive: -Yvirtpatmat disables the old matcher logic completely --- test/files/run/virtpatmat_try.check | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/files/run/virtpatmat_try.check (limited to 'test/files/run/virtpatmat_try.check') diff --git a/test/files/run/virtpatmat_try.check b/test/files/run/virtpatmat_try.check new file mode 100644 index 0000000000..80ebbf494a --- /dev/null +++ b/test/files/run/virtpatmat_try.check @@ -0,0 +1,2 @@ +meh +B -- cgit v1.2.3