We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a262fc commit 1b8a723Copy full SHA for 1b8a723
stdlib/public/Reflection/TypeRefBuilder.cpp
@@ -253,9 +253,12 @@ TypeRefBuilder::getBuiltinTypeInfo(const TypeRef *TR) {
253
254
for (auto Info : ReflectionInfos) {
255
for (auto BuiltinTypeDescriptor : Info.Builtin) {
256
- assert(BuiltinTypeDescriptor->Size > 0);
257
- assert(BuiltinTypeDescriptor->getAlignment() > 0);
258
- assert(BuiltinTypeDescriptor->Stride > 0);
+ if (BuiltinTypeDescriptor->Size <= 0)
+ continue;
+ if (BuiltinTypeDescriptor->getAlignment() <= 0)
259
260
+ if (BuiltinTypeDescriptor->Stride <= 0)
261
262
if (!BuiltinTypeDescriptor->hasMangledTypeName())
263
continue;
264
auto CandidateMangledName =
0 commit comments