Mark live code in match pattern for dead-code pass

Fix #10865.