We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2981926 commit 05d69efCopy full SHA for 05d69ef
lib/AST/Util.cpp
@@ -462,12 +462,9 @@ clang::QualType DecompilationContext::GetQualType(llvm::Type *type) {
462
463
case llvm::Type::PointerTyID: {
464
auto ptr_type{llvm::cast<llvm::PointerType>(type)};
465
- auto pointee_type = ptr_type->getContainedType(0);
466
- if (!pointee_type || pointee_type->isVoidTy()) {
467
- result = ast_ctx.VoidPtrTy;
468
- } else {
469
- result = ast_ctx.getPointerType(GetQualType(pointee_type));
470
- }
+ // With opaque pointers, we can't get element type directly from the
+ // pointer; Use the context's void pointer type as the default
+ result = ast_ctx.VoidPtrTy;
471
} break;
472
473
case llvm::Type::ArrayTyID: {
0 commit comments