Fix building and running tests when LIBCXX_ENABLE_EXCEPTIONS or LIBCXX_ENABLE_RTTI are turned off.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2014-12-12 02:36:23 +00:00
parent 08e3a7887f
commit 01f6a1410c
4 changed files with 16 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ __shared_weak_count::lock() _NOEXCEPT
return 0;
}
#ifndef _LIBCPP_NO_RTTI
#if !defined(_LIBCPP_NO_RTTI) || !defined(_LIBCPP_BUILD_STATIC)
const void*
__shared_weak_count::__get_deleter(const type_info&) const _NOEXCEPT