Skip to content

Commit 54f9cae

Browse files
authored
Merge pull request #62630 from adrian-prantl/103416237
Temporarily disable assertion
2 parents e51176b + f53c9a1 commit 54f9cae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/IRGen/DebugTypeInfo.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ DebugTypeInfo DebugTypeInfo::getFromTypeInfo(swift::Type Ty, const TypeInfo &TI,
5353
if (TI.isFixedSize()) {
5454
const FixedTypeInfo &FixTy = *cast<const FixedTypeInfo>(&TI);
5555
Size::int_type Size = FixTy.getFixedSize().getValue() * 8;
56-
//if (!StorageType->isPointerTy())
57-
// Size -= FixTy.getSpareBits().asAPInt().countTrailingOnes();
5856
SizeInBits = Size;
5957
}
6058
assert(TI.getStorageType() && "StorageType is a nullptr");
@@ -166,7 +164,8 @@ DebugTypeInfo DebugTypeInfo::getErrorResult(swift::Type Ty,
166164
llvm::Type *StorageType,
167165
IRGenModule &IGM) {
168166
auto &TI = IGM.getTypeInfoForUnlowered(Ty);
169-
assert(TI.getStorageType() == StorageType);
167+
// FIXME: Enable this. Currently breaks on i386.
168+
// assert(TI.getStorageType() == StorageType);
170169
DebugTypeInfo DbgTy = getFromTypeInfo(Ty, TI, false);
171170
assert(StorageType && "FragmentStorageType is a nullptr");
172171
return DbgTy;

0 commit comments

Comments
 (0)