diff options
author | Karl Williamson <khw@cpan.org> | 2020-06-16 16:42:47 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-05 17:41:37 -0600 |
commit | 6aa30f5e7b51ddd8a2c6d878700735640d8007b4 (patch) | |
tree | 0821e1b921a16d89c8ee49a2658c9265e66f8a8c /inline.h | |
parent | 042f0c676902779969ff2932ac5d8eda8d41f09a (diff) | |
download | perl-6aa30f5e7b51ddd8a2c6d878700735640d8007b4.tar.gz |
Clarify branch prediction in SvTRUE
Diffstat (limited to 'inline.h')
-rw-r--r-- | inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -206,7 +206,7 @@ Perl_ReANY(const REGEXP * const re) PERL_STATIC_INLINE bool Perl_SvTRUE(pTHX_ SV *sv) { - if (!LIKELY(sv)) + if (UNLIKELY(sv == NULL)) return FALSE; SvGETMAGIC(sv); return SvTRUE_nomg_NN(sv); |