Skip to content

Commit

Permalink
[lldb] Fix calls to Type::getInt8PtrTy (#71561)
Browse files Browse the repository at this point in the history
These have been removed in 7b9d73c.
This is a followup patch to apply the changes to lldb.
  • Loading branch information
pmatos committed Nov 7, 2023
1 parent 45ca24e commit 3267cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -273,7 +273,7 @@ class Instrumenter {

PointerType *GetI8PtrTy() {
if (!m_i8ptr_ty)
m_i8ptr_ty = llvm::Type::getInt8PtrTy(m_module.getContext());
m_i8ptr_ty = llvm::PointerType::getUnqual(m_module.getContext());

return m_i8ptr_ty;
}
Expand Down
6 changes: 3 additions & 3 deletions lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
Expand Up @@ -404,7 +404,7 @@ bool IRForTarget::RewriteObjCConstString(llvm::GlobalVariable *ns_str,

Type *ns_str_ty = ns_str->getType();

Type *i8_ptr_ty = Type::getInt8PtrTy(m_module->getContext());
Type *i8_ptr_ty = PointerType::getUnqual(m_module->getContext());
Type *i32_ty = Type::getInt32Ty(m_module->getContext());
Type *i8_ty = Type::getInt8Ty(m_module->getContext());

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

Type *type_array[1];

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

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

Expand Down

0 comments on commit 3267cd3

Please sign in to comment.