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 b10bc8f commit 99d2b17Copy full SHA for 99d2b17
lib/Serialization/Deserialization.cpp
@@ -4240,7 +4240,11 @@ Type ModuleFile::getType(TypeID TID) {
4240
4241
#ifndef NDEBUG
4242
PrettyStackTraceType trace(ctx, "deserializing", typeOrOffset.get());
4243
- assert(!typeOrOffset.get()->hasError());
+ if (typeOrOffset.get()->hasError()) {
4244
+ typeOrOffset.get()->dump();
4245
+ llvm_unreachable("deserialization produced an invalid type "
4246
+ "(rdar://problem/30382791)");
4247
+ }
4248
#endif
4249
4250
// Invoke the callback on the deserialized type.
0 commit comments