File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1032,11 +1032,8 @@ void IRGenDebugInfo::emitVariableDeclaration(
1032
1032
if (IsPiece) {
1033
1033
// Try to get the size from the type if possible.
1034
1034
auto StorageSize = getSizeFromExplosionValue (CI.getTargetInfo (), Piece);
1035
- // FIXME: The TypeInfo for bound generic enum types reports a
1036
- // type <{}> (with size 0) but a concrete instance may still
1037
- // have storage allocated for it. rdar://problem/21470869
1038
- if (!Dim.SizeInBits || (StorageSize && Dim.SizeInBits > StorageSize))
1039
- Dim.SizeInBits = StorageSize;
1035
+ assert ((Dim.SizeInBits != 0 || StorageSize != 0 ) &&
1036
+ " zero-sized variable with nonzero storage size" );
1040
1037
1041
1038
// FIXME: Occasionally we miss out that the Storage is actually a
1042
1039
// refcount wrapper. Silently skip these for now.
You can’t perform that action at this time.
0 commit comments