mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-14 12:01:21 +00:00
Use the canonical way to get an empty structure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
95d110920e
commit
4925567f85
@ -1285,8 +1285,7 @@ const PointerType *DISerializer::getEmptyStructPtrType() {
|
|||||||
if (EmptyStructPtrTy) return EmptyStructPtrTy;
|
if (EmptyStructPtrTy) return EmptyStructPtrTy;
|
||||||
|
|
||||||
// Construct the pointer to empty structure type.
|
// Construct the pointer to empty structure type.
|
||||||
const StructType *EmptyStructTy =
|
const StructType *EmptyStructTy = StructType::get(NULL, NULL);
|
||||||
StructType::get(std::vector<const Type*>());
|
|
||||||
|
|
||||||
// Construct the pointer to empty structure type.
|
// Construct the pointer to empty structure type.
|
||||||
EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
|
EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
|
||||||
@ -1754,7 +1753,7 @@ void MachineModuleInfo::addCatchTypeInfo(MachineBasicBlock *LandingPad,
|
|||||||
void MachineModuleInfo::addFilterTypeInfo(MachineBasicBlock *LandingPad,
|
void MachineModuleInfo::addFilterTypeInfo(MachineBasicBlock *LandingPad,
|
||||||
std::vector<GlobalVariable *> &TyInfo) {
|
std::vector<GlobalVariable *> &TyInfo) {
|
||||||
LandingPadInfo &LP = getOrCreateLandingPadInfo(LandingPad);
|
LandingPadInfo &LP = getOrCreateLandingPadInfo(LandingPad);
|
||||||
std::vector<unsigned> IdsInFilter (TyInfo.size());
|
std::vector<unsigned> IdsInFilter(TyInfo.size());
|
||||||
for (unsigned I = 0, E = TyInfo.size(); I != E; ++I)
|
for (unsigned I = 0, E = TyInfo.size(); I != E; ++I)
|
||||||
IdsInFilter[I] = getTypeIDFor(TyInfo[I]);
|
IdsInFilter[I] = getTypeIDFor(TyInfo[I]);
|
||||||
LP.TypeIds.push_back(getFilterIDFor(IdsInFilter));
|
LP.TypeIds.push_back(getFilterIDFor(IdsInFilter));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user