]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r315745:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 25 Mar 2017 12:29:15 +0000 (12:29 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 25 Mar 2017 12:29:15 +0000 (12:29 +0000)
commit9f36a0ffbf566c68a76510f18431488bcbc1303d
tree4259cd579fd71a817fc18450c4e8153e440b13b1
parent17da0e624287b34997ec8cb2169ae44c1e4969a2
MFC r315745:

Cherry-pick libcxxrt commit 8a853717e61d5d55cbdf74d9d0a7545da5d5ff92:

Author: David Chisnall <theraven@FreeBSD.org>
Date:   Wed Mar 22 12:27:08 2017 +0000

    Simplify some code.

    realloc() with a null pointer is equivalent to malloc, so we don't need
    to handle the two cases independently.

    Fixes #46

This should help with lang/beignet and other programs, which expect
__cxa_demangle(name, NULL, NULL, &status) to return zero in status.

PR: 213732

git-svn-id: svn://svn.freebsd.org/base/stable/9@315943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/libcxxrt/typeinfo.cc