[Serialization] Fix one PrettyStackTrace, add another. (#7436)

We want to see /what/ types are failing here.
This commit is contained in:
Jordan Rose
2017-02-13 16:42:14 -08:00
committed by GitHub
parent a4904befd6
commit 54be4e17ca
2 changed files with 5 additions and 2 deletions

View File

@@ -4253,7 +4253,7 @@ Type ModuleFile::getType(TypeID TID) {
}
#ifndef NDEBUG
PrettyStackTraceType(ctx, "deserializing", typeOrOffset.get());
PrettyStackTraceType trace(ctx, "deserializing", typeOrOffset.get());
assert(!typeOrOffset.get()->hasError());
#endif