[erlang-patches] Fix native code compiler crash involving bs_match_string

Kostis Sagonas kostis@REDACTED
Sun Mar 10 19:29:06 CET 2013


Prior to R16B, the bs_match_string instruction worked only for cases
that had a destination variable. As shown by the example below, this
is not always the case and the Dst list can be empty.

   test(<<42, _/bits>> = B) -> B.

This fixes a bug reported by Loïc Hoguin (02/12/2013); the original
post used a different code example to illustrate the problem.

While revising the code, a clean up of some HiPE files was also performed.

====================================================================

Please include:

   git fetch git://github.com/kostis/otp.git hipe-cleanup

Kostis



More information about the erlang-patches mailing list