summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/unittests/Bitcode/BitReaderTest.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-01-27 16:42:12 +0000
committerpatrick <patrick@openbsd.org>2019-01-27 16:42:12 +0000
commitb773203fb58f3ef282fb69c832d8710cab5bc82d (patch)
treee75913f147570fbd75169647b144df85b88a038c /gnu/llvm/unittests/Bitcode/BitReaderTest.cpp
parenttweak errno in previous (diff)
downloadwireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.tar.xz
wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.zip
Import LLVM 7.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/unittests/Bitcode/BitReaderTest.cpp')
-rw-r--r--gnu/llvm/unittests/Bitcode/BitReaderTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/llvm/unittests/Bitcode/BitReaderTest.cpp b/gnu/llvm/unittests/Bitcode/BitReaderTest.cpp
index 5efb7faf508..3b4600718b5 100644
--- a/gnu/llvm/unittests/Bitcode/BitReaderTest.cpp
+++ b/gnu/llvm/unittests/Bitcode/BitReaderTest.cpp
@@ -44,7 +44,7 @@ std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
static void writeModuleToBuffer(std::unique_ptr<Module> Mod,
SmallVectorImpl<char> &Buffer) {
raw_svector_ostream OS(Buffer);
- WriteBitcodeToFile(Mod.get(), OS);
+ WriteBitcodeToFile(*Mod, OS);
}
static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context,