[llvm] r282618 - Fix the bug introduced in r282616.
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 11:54:37 PDT 2016
Author: dehao
Date: Wed Sep 28 13:54:36 2016
New Revision: 282618
URL: http://llvm.org/viewvc/llvm-project?rev=282618&view=rev
Log:
Fix the bug introduced in r282616.
Modified:
llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp
Modified: llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp?rev=282618&r1=282617&r2=282618&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp (original)
+++ llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp Wed Sep 28 13:54:36 2016
@@ -378,7 +378,7 @@ ProcessThinLTOModule(Module &TheModule,
SmallVector<char, 128> OutputBuffer;
{
raw_svector_ostream OS(OutputBuffer);
- ProfileSummaryInfo PSI(TheModule);
+ ProfileSummaryInfo PSI(&TheModule);
auto Index = buildModuleSummaryIndex(TheModule, nullptr, nullptr);
WriteBitcodeToFile(&TheModule, OS, true, &Index);
}
More information about the llvm-commits
mailing list