Add missing dependency to "Module Summary Analysis" pass
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 21 Jan 2017 06:01:22 +0000 (06:01 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 21 Jan 2017 06:01:22 +0000 (06:01 +0000)
This is fixing a clang crash when running `clang -flto=thin -save-temps`

llvm-svn: 292711

llvm/lib/Analysis/ModuleSummaryAnalysis.cpp

index 6387bb3..f5ba637 100644 (file)
@@ -405,6 +405,7 @@ char ModuleSummaryIndexWrapperPass::ID = 0;
 INITIALIZE_PASS_BEGIN(ModuleSummaryIndexWrapperPass, "module-summary-analysis",
                       "Module Summary Analysis", false, true)
 INITIALIZE_PASS_DEPENDENCY(BlockFrequencyInfoWrapperPass)
+INITIALIZE_PASS_DEPENDENCY(ProfileSummaryInfoWrapperPass)
 INITIALIZE_PASS_END(ModuleSummaryIndexWrapperPass, "module-summary-analysis",
                     "Module Summary Analysis", false, true)