mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[opaque pointer type] Change GetElementPtrInst::getIndexedType to take the pointee type
This pushes the use of PointerType::getElementType up into several callers - I'll essentially just have to keep pushing that up the stack until I can eliminate every call to it... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2344,7 +2344,7 @@ void Verifier::visitGetElementPtrInst(GetElementPtrInst &GEP) {
|
||||
|
||||
SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end());
|
||||
Type *ElTy =
|
||||
GetElementPtrInst::getIndexedType(GEP.getPointerOperandType(), Idxs);
|
||||
GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs);
|
||||
Assert(ElTy, "Invalid indices for GEP pointer type!", &GEP);
|
||||
|
||||
Assert(GEP.getType()->getScalarType()->isPointerTy() &&
|
||||
|
||||
Reference in New Issue
Block a user