Skip to content

Commit

Permalink
Merge pull request swiftlang#12105 from eeckstein/fix-crash-output
Browse files Browse the repository at this point in the history
Fix output of function name in crash trace.
  • Loading branch information
eeckstein authored Sep 25, 2017
2 parents 84db068 + 9880d8e commit d807ef1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/SILOptimizer/PassManager/PassManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ void SILPassManager::runPassOnFunction(SILFunctionTransform *SFT,

assert(analysesUnlocked() && "Expected all analyses to be unlocked!");

PrettyStackTraceSILFunctionTransform X(SFT, NumPassesRun);
DebugPrintEnabler DebugPrint(NumPassesRun);

SFT->injectPassManager(this);
SFT->injectFunction(F);

PrettyStackTraceSILFunctionTransform X(SFT, NumPassesRun);
DebugPrintEnabler DebugPrint(NumPassesRun);

// If nothing changed since the last run of this pass, we can skip this
// pass.
CompletedPasses &completedPasses = CompletedPassesMap[F];
Expand Down Expand Up @@ -440,12 +440,12 @@ void SILPassManager::runModulePass(SILModuleTransform *SMT) {

const SILOptions &Options = getOptions();

PrettyStackTraceSILModuleTransform X(SMT, NumPassesRun);
DebugPrintEnabler DebugPrint(NumPassesRun);

SMT->injectPassManager(this);
SMT->injectModule(Mod);

PrettyStackTraceSILModuleTransform X(SMT, NumPassesRun);
DebugPrintEnabler DebugPrint(NumPassesRun);

updateSILModuleStatsBeforeTransform(*Mod, SMT, *this, NumPassesRun);

CurrentPassHasInvalidated = false;
Expand Down

0 comments on commit d807ef1

Please sign in to comment.