diff options
author | Dehao Chen <dehao@google.com> | 2016-09-28 18:54:36 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2016-09-28 18:54:36 +0000 |
commit | 10d0abb5155320ff9a69cc5a9a0d9de4ef42854f (patch) | |
tree | a6c32d91d233ddade1e46b0b432fa15f11781467 /llvm/lib/LTO/ThinLTOCodeGenerator.cpp | |
parent | e8c12662ac338b24f36e1111942b8b6ac23c5e99 (diff) | |
download | bcm5719-llvm-10d0abb5155320ff9a69cc5a9a0d9de4ef42854f.tar.gz bcm5719-llvm-10d0abb5155320ff9a69cc5a9a0d9de4ef42854f.zip |
Fix the bug introduced in r282616.
llvm-svn: 282618
Diffstat (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp')
-rw-r--r-- | llvm/lib/LTO/ThinLTOCodeGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp index f4232dc2f89..49b73e117d9 100644 --- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -378,7 +378,7 @@ ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index, 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); } |