diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-18 12:17:29 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-07-18 12:28:53 +0200 |
commit | b13f280538cfd6a97bbbed24408e2524de7cc093 (patch) | |
tree | 2b82959b1d979552d02cece9803508093efc17c6 /llvm/lib/IR/ConstantFold.cpp | |
parent | 08fd44b30063f7a896e76be7f47b79622dba1427 (diff) | |
download | llvm-b13f280538cfd6a97bbbed24408e2524de7cc093.zip llvm-b13f280538cfd6a97bbbed24408e2524de7cc093.tar.gz llvm-b13f280538cfd6a97bbbed24408e2524de7cc093.tar.bz2 |
[IR] Remove typed pointer handling from getGEPReturnType() (NFC)
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 20e2882..4c33250 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -2000,7 +2000,7 @@ Constant *llvm::ConstantFoldGetElementPtr(Type *PointeeTy, Constant *C, if (Idxs.empty()) return C; Type *GEPTy = GetElementPtrInst::getGEPReturnType( - PointeeTy, C, ArrayRef((Value *const *)Idxs.data(), Idxs.size())); + C, ArrayRef((Value *const *)Idxs.data(), Idxs.size())); if (isa<PoisonValue>(C)) return PoisonValue::get(GEPTy); |