Skip to content

Commit

Permalink
Library Forwarding: Avoid de-sugaring pointee types
Browse files Browse the repository at this point in the history
Doing so would accidentally resolve typedefs before. This code isn't needed
now that integers are mapped to fixed-size equivalents anyway.
  • Loading branch information
neobrain committed Jan 31, 2024
1 parent a4c1aaa commit 8e1aaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThunkLibs/Generator/analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e1aaa0

Please sign in to comment.