mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
GP-790 Demangler constructor return undefined
This commit is contained in:
parent
b55e34f696
commit
0debac8498
@ -461,8 +461,12 @@ public class DemangledFunction extends DemangledObject {
|
||||
// If returnType is null check for constructor or destructor names
|
||||
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
||||
String n = getName();
|
||||
if (n.equals("~" + namespace.getName()) || n.equals(namespace.getName())) {
|
||||
// constructor && destructor
|
||||
if (n.equals(namespace.getName())) {
|
||||
// constructor
|
||||
return DataType.DEFAULT;
|
||||
}
|
||||
if (n.equals("~" + namespace.getName())) {
|
||||
// destructor
|
||||
return VoidDataType.dataType;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user