We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24eabc0 commit 745c0b3Copy full SHA for 745c0b3
1 file changed
plugins/rtti/itanium.cpp
@@ -446,9 +446,11 @@ std::optional<ClassInfo> ItaniumRTTIProcessor::ProcessRTTI(uint64_t objectAddr)
446
return std::nullopt;
447
auto symName = sym->GetShortName();
448
// Remove type info prefix.
449
- if (symName.rfind("_typeinfo_for_", 0) != 0)
450
- return std::nullopt;
451
- return symName.substr(14);
+ if (symName.rfind("_typeinfo_for_", 0) == 0)
+ return symName.substr(14);
+ if (symName.rfind("typeinfo_for_", 0) == 0)
452
+ return symName.substr(13);
453
+ return std::nullopt;
454
};
455
456
if (typeInfoVariant == TIVSIClass)
0 commit comments