Adopt .prototype()

Also adopt `QualifiedType::getFunctionType` where appropriate in order
to unwrap typedefs.
This commit is contained in:
Alessandro Di Federico
2023-10-05 18:44:07 +02:00
parent cae213b36b
commit cb8aa3d929
10 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ ModelTypesMap initModelTypes(FunctionMetadataCache &Cache,
bool PointersOnly) {
ModelTypesMap TypeMap;
const model::Type *Prototype = ModelF->Prototype().getConst();
const model::Type *Prototype = ModelF->prototype(Model).getConst();
revng_assert(Prototype);
addArgumentsTypes(F, Prototype, Model, TypeMap, PointersOnly);