mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
add Objective C 'ATOMIC' for type-encoding 'A' modifier
This commit is contained in:
parent
8dffa0384e
commit
81a25b6c0e
2 changed files with 13 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue