mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move "isDebugMode" into ConstraintSystem
This eliminates the final source of mutation of the TypeCheckerFlags on the ASTContext.
This commit is contained in:
@@ -104,10 +104,6 @@ ModuleDecl *SourceLoader::loadModule(SourceLoc importLoc,
|
||||
dependencyTracker->addDependency(inputFile->getBufferIdentifier(),
|
||||
/*isSystem=*/false);
|
||||
|
||||
// Turn off debugging while parsing other modules.
|
||||
llvm::SaveAndRestore<bool>
|
||||
turnOffDebug(Ctx.TypeCheckerOpts.DebugConstraintSolver, false);
|
||||
|
||||
unsigned bufferID;
|
||||
if (auto BufID =
|
||||
Ctx.SourceMgr.getIDForBufferIdentifier(inputFile->getBufferIdentifier()))
|
||||
|
||||
Reference in New Issue
Block a user