From 6a86e25d90303dd84f179cbe07db9c08eb8161eb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 14 Feb 2018 19:11:32 +0000 Subject: Pass a reference to a module to the bitcode writer. This simplifies most callers as they are already using references or std::unique_ptr. llvm-svn: 325155 --- llvm/lib/LTO/LTOCodeGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp') diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index c7306df95d3..ffe9af74cdc 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -220,7 +220,7 @@ bool LTOCodeGenerator::writeMergedModules(StringRef Path) { } // write bitcode to it - WriteBitcodeToFile(MergedModule.get(), Out.os(), ShouldEmbedUselists); + WriteBitcodeToFile(*MergedModule, Out.os(), ShouldEmbedUselists); Out.os().close(); if (Out.os().has_error()) { -- cgit v1.2.3