[NFC] Remove uses of PointerType::getElementType()
Instead use either Type::getPointerElementType() or Type::getNonOpaquePointerElementType(). This is part of D117885, in preparation for deprecating the API.
This commit is contained in:
@@ -948,7 +948,7 @@ void ModuleBitcodeWriter::writeTypeTable() {
|
||||
} else {
|
||||
// POINTER: [pointee type, address space]
|
||||
Code = bitc::TYPE_CODE_POINTER;
|
||||
TypeVals.push_back(VE.getTypeID(PTy->getElementType()));
|
||||
TypeVals.push_back(VE.getTypeID(PTy->getNonOpaquePointerElementType()));
|
||||
TypeVals.push_back(AddressSpace);
|
||||
if (AddressSpace == 0)
|
||||
AbbrevToUse = PtrAbbrev;
|
||||
|
||||
Reference in New Issue
Block a user