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.
This commit is contained in:
Tony Wasserka committed 2024-01-31 19:16:19 +01:00
1 parent a4c1aaa6bc
commit 8e1aaa0559
1 file changed
+1 -1
+1 -1
View File
@@ -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