aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2023-03-09 15:42:27 -0800
committerArthur Eubanks <aeubanks@google.com>2023-03-09 15:42:38 -0800
commit9e0c2626f3d4282a135da112320139d9fba32fb5 (patch)
treef1c9b9e7333c230b9005c9a297ef5ee33182a603 /llvm/lib/IR/Core.cpp
parent013235a2000d155dee8288a1665efcac152d4ea4 (diff)
downloadllvm-9e0c2626f3d4282a135da112320139d9fba32fb5.zip
llvm-9e0c2626f3d4282a135da112320139d9fba32fb5.tar.gz
llvm-9e0c2626f3d4282a135da112320139d9fba32fb5.tar.bz2
[llvm-c] Remove pointee support from LLVMGetElementType
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145717
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index a0fade9..85b7d17 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -811,8 +811,6 @@ LLVMTypeRef LLVMScalableVectorType(LLVMTypeRef ElementType,
LLVMTypeRef LLVMGetElementType(LLVMTypeRef WrappedTy) {
auto *Ty = unwrap(WrappedTy);
- if (auto *PTy = dyn_cast<PointerType>(Ty))
- return wrap(PTy->getNonOpaquePointerElementType());
if (auto *ATy = dyn_cast<ArrayType>(Ty))
return wrap(ATy->getElementType());
return wrap(cast<VectorType>(Ty)->getElementType());