SIL: Remove unnecessary performSILLinking() calls from immediate mode and REPL

This commit is contained in:
Slava Pestov
2018-04-06 16:48:58 -07:00
parent 653ce6162e
commit cc586594d1
5 changed files with 4 additions and 12 deletions

View File

@@ -984,7 +984,7 @@ static bool performCompile(CompilerInstance &Instance,
static void linkAllIfNeeded(const CompilerInvocation &Invocation,
SILModule *SM) {
if (Invocation.getSILOptions().LinkMode == SILOptions::LinkAll)
performSILLinking(SM, true);
performSILLinking(SM);
}
/// Perform "stable" optimizations that are invariant across compiler versions.