diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-09-13 17:10:24 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-09-13 17:10:24 +0000 |
commit | cbdc5ff628535761663367ab67621087aadd0d5f (patch) | |
tree | 6263a4133e78f8792e305522f3c8f3ef9bf5bbc1 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | d067c8ed59ccd8a74f266c9fd06c9cfbdef834a1 (diff) | |
download | bcm5719-llvm-cbdc5ff628535761663367ab67621087aadd0d5f.tar.gz bcm5719-llvm-cbdc5ff628535761663367ab67621087aadd0d5f.zip |
[ThinLTO] AliasSummary should not have any references
Summary: References should only be on the aliasee.
Reviewers: pcc
Subscribers: llvm-commits, inglorion
Differential Revision: https://reviews.llvm.org/D37814
llvm-svn: 313158
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp index 2b355deade3..afd575e7273 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -343,7 +343,7 @@ computeAliasSummary(ModuleSummaryIndex &Index, const GlobalAlias &A, bool NonRenamableLocal = isNonRenamableLocal(A); GlobalValueSummary::GVFlags Flags(A.getLinkage(), NonRenamableLocal, /* Live = */ false); - auto AS = llvm::make_unique<AliasSummary>(Flags, ArrayRef<ValueInfo>{}); + auto AS = llvm::make_unique<AliasSummary>(Flags); auto *Aliasee = A.getBaseObject(); auto *AliaseeSummary = Index.getGlobalValueSummary(*Aliasee); assert(AliaseeSummary && "Alias expects aliasee summary to be parsed"); |