Skip to content

Commit

Permalink
Fix isOpaquePointer deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Jan 27, 2024
1 parent 328ca1a commit 439f3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,7 @@ void jl_get_llvmf_defn_impl(jl_llvmf_dump_t* dump, jl_method_instance_t *mi, siz
} else {
auto p = literal_static_pointer_val(global.first, global.second->getValueType());
Type *elty;
if (p->getType()->isOpaquePointerTy()) {
if (p->getType()->isPointerTy()) {
elty = PointerType::get(output.getContext(), 0);
} else {
elty = p->getType()->getNonOpaquePointerElementType();
Expand Down
4 changes: 2 additions & 2 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ struct JuliaOJIT::DLSymOptimizer {
if (named) {
auto T = GV.getValueType();
assert(T->isPointerTy());
if (!T->isOpaquePointerTy()) {
if (!T->isPointerTy()) {
T = T->getNonOpaquePointerElementType();
}
init = GlobalAlias::create(T, 0, GlobalValue::PrivateLinkage, GV.getName() + ".jit", init, &M);
Expand Down Expand Up @@ -1619,7 +1619,7 @@ struct JuliaOJIT::DLSymOptimizer {
if (named) {
auto T = CI->getType();
assert(T->isPointerTy());
if (!T->isOpaquePointerTy()) {
if (!T->isPointerTy()) {
T = T->getNonOpaquePointerElementType();
}
init = GlobalAlias::create(T, 0, GlobalValue::PrivateLinkage, CI->getName() + ".jit", init, &M);
Expand Down

0 comments on commit 439f3f1

Please sign in to comment.