aboutsummaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_type_hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ubsan/ubsan_type_hash.cc')
-rw-r--r--lib/ubsan/ubsan_type_hash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ubsan/ubsan_type_hash.cc b/lib/ubsan/ubsan_type_hash.cc
index 7a9cd28f6ec0..b27aefc16821 100644
--- a/lib/ubsan/ubsan_type_hash.cc
+++ b/lib/ubsan/ubsan_type_hash.cc
@@ -116,7 +116,7 @@ __ubsan::__ubsan_vptr_type_cache[__ubsan::VptrTypeCacheSize] = { 1 };
static bool isDerivedFromAtOffset(const abi::__class_type_info *Derived,
const abi::__class_type_info *Base,
sptr Offset) {
- if (Derived == Base)
+ if (Derived->__type_name == Base->__type_name)
return Offset == 0;
if (const abi::__si_class_type_info *SI =