OSDN Git Service

Fix the bug introduced in r282616.
authorDehao Chen <dehao@google.com>
Wed, 28 Sep 2016 18:54:36 +0000 (18:54 +0000)
committerDehao Chen <dehao@google.com>
Wed, 28 Sep 2016 18:54:36 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282618 91177308-0d34-0410-b5e6-96231b3b80d8

lib/LTO/ThinLTOCodeGenerator.cpp

index f4232dc..49b73e1 100644 (file)
@@ -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);
     }