diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-18 11:13:26 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-07-18 11:18:31 +0200 |
commit | 9cf5254878ca13bc55a988a4bb370de6c3d791f3 (patch) | |
tree | dcb0ea2b079d8ded5974d8052e6cc64ce82464bc /llvm/lib/IR/Constants.cpp | |
parent | 2c651184a2b0ef1b0e24c6536e5befb65a0ae5ce (diff) | |
download | llvm-9cf5254878ca13bc55a988a4bb370de6c3d791f3.zip llvm-9cf5254878ca13bc55a988a4bb370de6c3d791f3.tar.gz llvm-9cf5254878ca13bc55a988a4bb370de6c3d791f3.tar.bz2 |
[llvm] Remove some uses of isOpaqueOrPointeeTypeEquals() (NFC)
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index 23af3c4..9c8d044 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -2383,7 +2383,6 @@ Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, PointerType *OrigPtrTy = cast<PointerType>(C->getType()->getScalarType()); assert(Ty && "Must specify element type"); assert(isSupportedGetElementPtr(Ty) && "Element type is unsupported!"); - assert(OrigPtrTy->isOpaqueOrPointeeTypeMatches(Ty)); if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InBounds, InRangeIndex, Idxs)) |