mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 13:21:38 +00:00
[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
This commit is contained in:
1 parent
d067c8ed59
commit
cbdc5ff628
3 files changed
+9
-7
No files matched your search
@@ -5159,8 +5159,7 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
|
||||
uint64_t RawFlags = Record[1];
|
||||
unsigned AliaseeID = Record[2];
|
||||
auto Flags = getDecodedGVSummaryFlags(RawFlags, Version);
|
||||
auto AS =
|
||||
llvm::make_unique<AliasSummary>(Flags, std::vector<ValueInfo>{});
|
||||
auto AS = llvm::make_unique<AliasSummary>(Flags);
|
||||
// The module path string ref set in the summary must be owned by the
|
||||
// index's module string table. Since we don't have a module path
|
||||
// string table section in the per-module index, we create a single
|
||||
@@ -5253,7 +5252,7 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
|
||||
uint64_t RawFlags = Record[2];
|
||||
unsigned AliaseeValueId = Record[3];
|
||||
auto Flags = getDecodedGVSummaryFlags(RawFlags, Version);
|
||||
auto AS = llvm::make_unique<AliasSummary>(Flags, std::vector<ValueInfo>{});
|
||||
auto AS = llvm::make_unique<AliasSummary>(Flags);
|
||||
LastSeenSummary = AS.get();
|
||||
AS->setModulePath(ModuleIdMap[ModuleId]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user