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:
Bill Wendling 2008-07-07 21:41:57 +00:00
parent 95d110920e
commit 4925567f85

View File

@ -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);