File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4253,7 +4253,7 @@ Type ModuleFile::getType(TypeID TID) {
4253
4253
}
4254
4254
4255
4255
#ifndef NDEBUG
4256
- PrettyStackTraceType (ctx, " deserializing" , typeOrOffset.get ());
4256
+ PrettyStackTraceType trace (ctx, " deserializing" , typeOrOffset.get ());
4257
4257
assert (!typeOrOffset.get ()->hasError ());
4258
4258
#endif
4259
4259
Original file line number Diff line number Diff line change 20
20
#include " swift/AST/GenericEnvironment.h"
21
21
#include " swift/AST/Initializer.h"
22
22
#include " swift/AST/LinkLibrary.h"
23
+ #include " swift/AST/PrettyStackTrace.h"
23
24
#include " swift/AST/ProtocolConformance.h"
24
- #include " swift/AST/ASTMangler.h"
25
25
#include " swift/AST/RawComment.h"
26
26
#include " swift/AST/USRGeneration.h"
27
27
#include " swift/Basic/Dwarf.h"
@@ -465,7 +465,10 @@ TypeID Serializer::addTypeRef(Type ty) {
465
465
if (!ty)
466
466
return 0 ;
467
467
468
+ #ifndef NDEBUG
469
+ PrettyStackTraceType trace (M->getASTContext (), " serializing" , ty);
468
470
assert (!ty->hasError () && " Serializing error type" );
471
+ #endif
469
472
470
473
auto &id = DeclAndTypeIDs[ty];
471
474
if (id.first != 0 )
You can’t perform that action at this time.
0 commit comments