now works with -fno-exceptions and -fno-rtti

llvm-svn: 110828
diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp
index f35b838..2caa12b 100644
--- a/libcxx/src/memory.cpp
+++ b/libcxx/src/memory.cpp
@@ -107,12 +107,16 @@
     return 0;
 }
 
+#ifndef _LIBCPP_NO_RTTI
+
 const void*
 __shared_weak_count::__get_deleter(const type_info&) const
 {
     return 0;
 }
 
+#endif
+
 void
 declare_reachable(void*)
 {