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:
parent
f636e21faa
commit
3d5ba159c6
@ -788,13 +788,12 @@ namespace utils {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case Type::UnaryTransform: {
|
case Type::UnaryTransform: {
|
||||||
|
const UnaryTransformType* Ty = llvm::cast<UnaryTransformType>(QTy);
|
||||||
|
if (Ty->isSugared()) {
|
||||||
|
QT = Ty->desugar();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
//const UnaryTransformType* Ty = llvm::cast<UnaryTransformType>(QTy);
|
|
||||||
//if (Ty->isSugared()) {
|
|
||||||
// QT = Ty->desugar();
|
|
||||||
// return true;
|
|
||||||
//}
|
|
||||||
//return false;
|
|
||||||
}
|
}
|
||||||
case Type::Auto: {
|
case Type::Auto: {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user