This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use NOT_REACHED in one spot in hv.c
authorFather Chrysostomos <sprout@cpan.org>
Tue, 14 Jan 2014 06:34:21 +0000 (22:34 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 14 Jan 2014 06:34:21 +0000 (22:34 -0800)
This reduces the size of hv.o by 32 bytes under clang.

hv.c

diff --git a/hv.c b/hv.c
index c81e5aa..1d322fe 100644 (file)
--- a/hv.c
+++ b/hv.c
@@ -1638,7 +1638,7 @@ S_clear_placeholders(pTHX_ HV *hv, U32 items)
     } while (--i >= 0);
     /* You can't get here, hence assertion should always fail.  */
     assert (items == 0);
-    assert (0);
+    NOT_REACHED;
 }
 
 STATIC void