Kaydet (Commit) 96af0825 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Need the _LIBCPP_NONUNIQUE_RTTI_BIT here, too

Doesn't help though, throwing exceptions using __cxa_throw() and our
hand-crafted type_infos still doesn't work on arm64.

Change-Id: If6099e8696e6232c4b6d4bacd654d28419538e0f
üst fdc1b1fc
...@@ -106,6 +106,9 @@ std::type_info * createFake_si_class_type_info( ...@@ -106,6 +106,9 @@ std::type_info * createFake_si_class_type_info(
Fake_si_class_type_info * fake Fake_si_class_type_info * fake
= reinterpret_cast<Fake_si_class_type_info *>(buf); = reinterpret_cast<Fake_si_class_type_info *>(buf);
fake->name = name; fake->name = name;
#ifdef _LIBCPP_NONUNIQUE_RTTI_BIT
*(uintptr_t*)(&fake->name) |= _LIBCPP_NONUNIQUE_RTTI_BIT;
#endif
fake->base = base; fake->base = base;
return reinterpret_cast<std::type_info *>( return reinterpret_cast<std::type_info *>(
static_cast<Fake_type_info *>(fake)); static_cast<Fake_type_info *>(fake));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment