erlang/otp — pull request #516 by josevalim (2014-10-23 12:10:26+00:00)
Title: Fix cover bug on last expressions with empty clauses

[OTP-8188](https://github.com/erlang/otp/blob/8304aeb0114e61e8f694a58cf9e91a00856c3fe5/lib/tools/src/cover.erl#L1621) introduced a fix for handling last expressions in
expressions like case, try and friends. However the fix did
not account that some of those expressions like receive may
have no clauses (only an after clause), leading to a function
clause error when cover compiling code with such expressions.

Thanks to @jtmoulia for reporting the bug and to @fishcakez for
isolating it and proposing a fix.