the code mostly works with llvm 15, except one occurence of getPointerElementType
} else if (T->isPointerTy()) {
Type *PointeeTy = T->getPointerElementType();
if (!(N = getType(PointeeTy)))
N = Builder.createPointerType(
getOrCreateType(PointeeTy), Layout.getPointerTypeSizeInBits(T),
Layout.getPrefTypeAlignment(T), /*DWARFAddressSpace=*/None,
getTypeName(T));
llvm 15 makes opaque pointers the default, and those don't have getPointerElementType any more. With this piece of code commented the build succeeds, but I'm not sure what consequences that has for the tool actually functioning.
the code mostly works with llvm 15, except one occurence of
getPointerElementTypellvm 15 makes opaque pointers the default, and those don't have
getPointerElementTypeany more. With this piece of code commented the build succeeds, but I'm not sure what consequences that has for the tool actually functioning.