Skip to content

Commit 832b2c8

Browse files
committed
[DebugInfo] Stop emitting spare bits mask in debug info
We're now able to calculate the spare bits mask from other information. Stop emitting it in debug info.
1 parent 53a1548 commit 832b2c8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,21 +1389,9 @@ createSpecializedStructOrClassType(NominalOrBoundGenericNominalType *Type,
13891389
}
13901390
}
13911391

1392-
APInt SpareBitsMask;
1393-
auto &EnumStrategy =
1394-
getEnumImplStrategy(IGM, DbgTy.getType()->getCanonicalType());
1395-
1396-
auto VariantOffsetInBits = 0;
1397-
if (auto SpareBitsMaskInfo = EnumStrategy.calculateSpareBitsMask()) {
1398-
SpareBitsMask = SpareBitsMaskInfo->bits;
1399-
// The offset of the variant mask in the overall enum.
1400-
VariantOffsetInBits = SpareBitsMaskInfo->byteOffset * 8;
1401-
}
1402-
14031392
auto VPTy = DBuilder.createVariantPart(
14041393
Scope, {}, File, Line, SizeInBits, AlignInBits, Flags, nullptr,
1405-
DBuilder.getOrCreateArray(Elements), /*UniqueIdentifier=*/"",
1406-
VariantOffsetInBits, SpareBitsMask);
1394+
DBuilder.getOrCreateArray(Elements), /*UniqueIdentifier=*/"");
14071395

14081396
auto DITy = DBuilder.createStructType(
14091397
Scope, Name, File, Line, SizeInBits, AlignInBits, Flags, nullptr,

0 commit comments

Comments
 (0)