diff --git a/src/aotcompile.cpp b/src/aotcompile.cpp index 14ca42a9fe27f7..97b54644a06a18 100644 --- a/src/aotcompile.cpp +++ b/src/aotcompile.cpp @@ -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(); diff --git a/src/jitlayers.cpp b/src/jitlayers.cpp index 88191c357123fa..a11d83d3fd8665 100644 --- a/src/jitlayers.cpp +++ b/src/jitlayers.cpp @@ -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); @@ -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);