From bf46e7410c8a1d26c4a434261baaae28a904d657 Mon Sep 17 00:00:00 2001 From: Eugene Leviant Date: Fri, 16 Nov 2018 07:08:00 +0000 Subject: [ThinLTO] Internalize readonly globals An attempt to recommit r346584 after failure on OSX build bot. Fixed cache key computation in ThinLTOCodeGenerator and added test case llvm-svn: 347033 --- llvm/lib/AsmParser/LLParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/AsmParser/LLParser.cpp') diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index c9ffbc04eb9..eab832c2dc1 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -7715,7 +7715,8 @@ bool LLParser::ParseVariableSummary(std::string Name, GlobalValue::GUID GUID, if (ParseToken(lltok::rparen, "expected ')' here")) return true; - auto GS = llvm::make_unique(GVFlags, std::move(Refs)); + auto GS = llvm::make_unique( + GVFlags, GlobalVarSummary::GVarFlags(), std::move(Refs)); GS->setModulePath(ModulePath); -- cgit v1.2.3