Skip to content

Commit 3267cd3

Browse files
authored
[lldb] Fix calls to Type::getInt8PtrTy (#71561)
These have been removed in 7b9d73c. This is a followup patch to apply the changes to lldb.
1 parent 45ca24e commit 3267cd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Instrumenter {
273273

274274
PointerType *GetI8PtrTy() {
275275
if (!m_i8ptr_ty)
276-
m_i8ptr_ty = llvm::Type::getInt8PtrTy(m_module.getContext());
276+
m_i8ptr_ty = llvm::PointerType::getUnqual(m_module.getContext());
277277

278278
return m_i8ptr_ty;
279279
}

lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ bool IRForTarget::RewriteObjCConstString(llvm::GlobalVariable *ns_str,
404404

405405
Type *ns_str_ty = ns_str->getType();
406406

407-
Type *i8_ptr_ty = Type::getInt8PtrTy(m_module->getContext());
407+
Type *i8_ptr_ty = PointerType::getUnqual(m_module->getContext());
408408
Type *i32_ty = Type::getInt32Ty(m_module->getContext());
409409
Type *i8_ty = Type::getInt8Ty(m_module->getContext());
410410

@@ -801,11 +801,11 @@ bool IRForTarget::RewriteObjCSelector(Instruction *selector_load) {
801801
// is uint8_t*
802802
// Type *sel_type = StructType::get(m_module->getContext());
803803
// Type *sel_ptr_type = PointerType::getUnqual(sel_type);
804-
Type *sel_ptr_type = Type::getInt8PtrTy(m_module->getContext());
804+
Type *sel_ptr_type = PointerType::getUnqual(m_module->getContext());
805805

806806
Type *type_array[1];
807807

808-
type_array[0] = llvm::Type::getInt8PtrTy(m_module->getContext());
808+
type_array[0] = llvm::PointerType::getUnqual(m_module->getContext());
809809

810810
ArrayRef<Type *> srN_arg_types(type_array, 1);
811811

0 commit comments

Comments
 (0)