DebugTypeInfo DebugTypeInfo::getFromTypeInfo(DeclContext *DC, swift::Type Ty, const TypeInfo &Info) { Size size; if (Info.isFixedSize()) { const FixedTypeInfo &FixTy = *cast<const FixedTypeInfo>(&Info); size = FixTy.getFixedSize(); } else { // FIXME: Handle NonFixedTypeInfo here or assert that we won't // encounter one. size = Size(0); } return DebugTypeInfo(DC, Ty.getPointer(), Info.getStorageType(), size, Info.getBestKnownAlignment()); }