Desugar UnaryTransformType

This fixes PyROOT's handling of smart pointers, such as shared_ptr,
with the new macOS SDK 14.0 resulting in a remove_extent transform.
This commit is contained in:
Jonas Hahnfeld 2023-10-05 10:43:32 +02:00 committed by jenkins
parent f636e21faa
commit 3d5ba159c6

View File

@ -788,13 +788,12 @@ namespace utils {
return false;
}
case Type::UnaryTransform: {
const UnaryTransformType* Ty = llvm::cast<UnaryTransformType>(QTy);
if (Ty->isSugared()) {
QT = Ty->desugar();
return true;
}
return false;
//const UnaryTransformType* Ty = llvm::cast<UnaryTransformType>(QTy);
//if (Ty->isSugared()) {
// QT = Ty->desugar();
// return true;
//}
//return false;
}
case Type::Auto: {
return false;