summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-09-28 18:54:36 +0000
committerDehao Chen <dehao@google.com>2016-09-28 18:54:36 +0000
commit10d0abb5155320ff9a69cc5a9a0d9de4ef42854f (patch)
treea6c32d91d233ddade1e46b0b432fa15f11781467 /llvm/lib/LTO/ThinLTOCodeGenerator.cpp
parente8c12662ac338b24f36e1111942b8b6ac23c5e99 (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud