From 27e01659972db28251c10a57ba2fbd132ecf012e Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Wed, 28 Sep 2016 18:54:36 +0000 Subject: [PATCH] Fix the bug introduced in r282616. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282618 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/LTO/ThinLTOCodeGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LTO/ThinLTOCodeGenerator.cpp b/lib/LTO/ThinLTOCodeGenerator.cpp index f4232dc2f89..49b73e117d9 100644 --- a/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/lib/LTO/ThinLTOCodeGenerator.cpp @@ -378,7 +378,7 @@ ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index, SmallVector OutputBuffer; { raw_svector_ostream OS(OutputBuffer); - ProfileSummaryInfo PSI(TheModule); + ProfileSummaryInfo PSI(&TheModule); auto Index = buildModuleSummaryIndex(TheModule, nullptr, nullptr); WriteBitcodeToFile(&TheModule, OS, true, &Index); } -- 2.50.1