Fix building and running tests when LIBCXX_ENABLE_EXCEPTIONS or LIBCXX_ENABLE_RTTI are turned off.
llvm-svn: 224095
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 7a68749f7f9ec455fe1860b6d8f8029a0a7ed8cd
diff --git a/src/memory.cpp b/src/memory.cpp
index c56d031..8a4eb34 100644
--- a/src/memory.cpp
+++ b/src/memory.cpp
@@ -111,7 +111,7 @@
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