Merge remote-tracking branch 'origin/GP-273_jpleasu_objc_typeencoding_fixes--SQUASHED' into Ghidra_9.2

This commit is contained in:
ghidravore 2020-10-30 15:59:14 -04:00
commit 956e8ef342
2 changed files with 13 additions and 2 deletions

View file

@ -83,7 +83,12 @@ public class ParameterDefinitionImpl implements ParameterDefinition {
throw new IllegalArgumentException(kind +
" type must be specified with fixed-length data type: " + dataType.getName());
}
if (dataType instanceof VoidDataType) {
DataType baseType = dataType;
if(baseType instanceof TypedefDataType) {
baseType = ((TypedefDataType)baseType).getBaseDataType();
}
if (baseType instanceof VoidDataType) {
if (!isReturn) {
throw new IllegalArgumentException(
"Parameter type may not specify the void datatype - empty parameter list should be used");