diff --git a/lib/FrontendTool/FrontendTool.cpp b/lib/FrontendTool/FrontendTool.cpp index d5aeaf390be16..048e44f5bbdbd 100644 --- a/lib/FrontendTool/FrontendTool.cpp +++ b/lib/FrontendTool/FrontendTool.cpp @@ -807,11 +807,6 @@ static bool performCompile(CompilerInstance &Instance, } } - // WALAWalker Integration - WALAWalker ww; - ww.analyzeSILModule(*SM); - // End WALAWalker Integration - if (observer) { observer->performedSILGeneration(*SM); } @@ -1004,6 +999,11 @@ static bool performCompile(CompilerInstance &Instance, assert(Action >= FrontendOptions::ActionType::EmitSIL && "All actions not requiring SILPasses must have been handled!"); + // WALAWalker Integration + WALAWalker ww; + ww.analyzeSILModule(*SM); + // End WALAWalker Integration + // We've been told to write canonical SIL, so write it now. if (Action == FrontendOptions::ActionType::EmitSIL) { return writeSIL(*SM, Instance.getMainModule(), opts.EmitVerboseSIL,