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/unittests/Bitcode/BitReaderTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp') diff --git a/llvm/unittests/Bitcode/BitReaderTest.cpp b/llvm/unittests/Bitcode/BitReaderTest.cpp index 5efb7faf508..3b4600718b5 100644 --- a/llvm/unittests/Bitcode/BitReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitReaderTest.cpp @@ -44,7 +44,7 @@ std::unique_ptr parseAssembly(LLVMContext &Context, static void writeModuleToBuffer(std::unique_ptr Mod, SmallVectorImpl &Buffer) { raw_svector_ostream OS(Buffer); - WriteBitcodeToFile(Mod.get(), OS); + WriteBitcodeToFile(*Mod, OS); } static std::unique_ptr getLazyModuleFromAssembly(LLVMContext &Context, -- cgit v1.2.3