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/tools/llvm-lto/llvm-lto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp') diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index c536f62833b..e7788f656cd 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -462,7 +462,7 @@ static void writeModuleToFile(Module &TheModule, StringRef Filename) { raw_fd_ostream OS(Filename, EC, sys::fs::OpenFlags::F_None); error(EC, "error opening the file '" + Filename + "'"); maybeVerifyModule(TheModule); - WriteBitcodeToFile(&TheModule, OS, /* ShouldPreserveUseListOrder */ true); + WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); } class ThinLTOProcessing { -- cgit v1.2.3