[IR] Remove deprecated PointerType::getElementType()
authorNikita Popov <npopov@redhat.com>
Mon, 14 Feb 2022 07:49:01 +0000 (08:49 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 14 Feb 2022 08:07:50 +0000 (09:07 +0100)
commitd593cf79458a59d37e75c886a4fc3ac6a02b484d
treee6b6186ded004ec9488bf3b39b74c93420f9cad4
parentbfb4c0c37078aa5ce251752d99310ccb05e1296a
[IR] Remove deprecated PointerType::getElementType()

This was deprecated before the LLVM 14 branch cut, remove the
method now.

As a temporary workaround, Type::getPointerElementType() can be
used instead.

See https://llvm.org/docs/OpaquePointers.html for information on
the opaque pointers migration.
llvm/include/llvm/IR/DerivedTypes.h