From 8e1aaa055911a4b5d3c7a8f0d71fc93294f78c89 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Wed, 31 Jan 2024 18:28:22 +0100 Subject: [PATCH] Library Forwarding: Avoid de-sugaring pointee types Doing so would accidentally resolve typedefs before. This code isn't needed now that integers are mapped to fixed-size equivalents anyway. --- ThunkLibs/Generator/analysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThunkLibs/Generator/analysis.cpp b/ThunkLibs/Generator/analysis.cpp index b3c11c5681..802ef573ac 100644 --- a/ThunkLibs/Generator/analysis.cpp +++ b/ThunkLibs/Generator/analysis.cpp @@ -429,7 +429,7 @@ void AnalysisAction::ParseInterface(clang::ASTContext& context) { check_struct_type(param_type.getTypePtr()); types.emplace(context.getCanonicalType(param_type.getTypePtr()), RepackedType { }); } else if (param_type->isPointerType()) { - auto pointee_type = param_type->getPointeeType()->getLocallyUnqualifiedSingleStepDesugaredType(); + auto pointee_type = param_type->getPointeeType(); if (pointee_type->isIntegerType()) { // Add builtin pointee type to type list