mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +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 returnType is null check for constructor or destructor names
|
||||||
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
||||||
String n = getName();
|
String n = getName();
|
||||||
if (n.equals("~" + namespace.getName()) || n.equals(namespace.getName())) {
|
if (n.equals(namespace.getName())) {
|
||||||
// constructor && destructor
|
// constructor
|
||||||
|
return DataType.DEFAULT;
|
||||||
|
}
|
||||||
|
if (n.equals("~" + namespace.getName())) {
|
||||||
|
// destructor
|
||||||
return VoidDataType.dataType;
|
return VoidDataType.dataType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user