summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-07 21:41:57 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-07 21:41:57 +0000
commitb46e5165bf6a9c2f4705f829759e3991ff0a613c (patch)
treefc1237f4470ec96e637016b597e041566b852362 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentd6ec05077fc2a7b3cf36f703d1baded4045d73ee (diff)
downloadbcm5719-llvm-b46e5165bf6a9c2f4705f829759e3991ff0a613c.tar.gz
bcm5719-llvm-b46e5165bf6a9c2f4705f829759e3991ff0a613c.zip
Use the canonical way to get an empty structure.
llvm-svn: 53206
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 149451b8301..5c826b5ffc1 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -1285,8 +1285,7 @@ const PointerType *DISerializer::getEmptyStructPtrType() {
if (EmptyStructPtrTy) return EmptyStructPtrTy;
// Construct the pointer to empty structure type.
- const StructType *EmptyStructTy =
- StructType::get(std::vector<const Type*>());
+ const StructType *EmptyStructTy = StructType::get(NULL, NULL);
// Construct the pointer to empty structure type.
EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
@@ -1754,7 +1753,7 @@ void MachineModuleInfo::addCatchTypeInfo(MachineBasicBlock *LandingPad,
void MachineModuleInfo::addFilterTypeInfo(MachineBasicBlock *LandingPad,
std::vector<GlobalVariable *> &TyInfo) {
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)
IdsInFilter[I] = getTypeIDFor(TyInfo[I]);
LP.TypeIds.push_back(getFilterIDFor(IdsInFilter));
OpenPOWER on IntegriCloud