summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Bitcode/BitReaderTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-16 22:27:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-16 22:27:55 +0000
commitdcd1dca275595bfabbd4abfdf0df6419f0f95a53 (patch)
tree8d97c3fa45635159b605f80e9a6ccb7272625eb5 /llvm/unittests/Bitcode/BitReaderTest.cpp
parent5293379374f46f670305a75dd3df667f04292dc9 (diff)
downloadbcm5719-llvm-dcd1dca275595bfabbd4abfdf0df6419f0f95a53.tar.gz
bcm5719-llvm-dcd1dca275595bfabbd4abfdf0df6419f0f95a53.zip
Return a unique_ptr from getLazyBitcodeModule and parseBitcodeFile. NFC.
llvm-svn: 239858
Diffstat (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp')
-rw-r--r--llvm/unittests/Bitcode/BitReaderTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Bitcode/BitReaderTest.cpp b/llvm/unittests/Bitcode/BitReaderTest.cpp
index 2e6dd0b499d..691a217d20e 100644
--- a/llvm/unittests/Bitcode/BitReaderTest.cpp
+++ b/llvm/unittests/Bitcode/BitReaderTest.cpp
@@ -53,9 +53,9 @@ static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context,
writeModuleToBuffer(parseAssembly(Assembly), Mem);
std::unique_ptr<MemoryBuffer> Buffer =
MemoryBuffer::getMemBuffer(Mem.str(), "test", false);
- ErrorOr<Module *> ModuleOrErr =
+ ErrorOr<std::unique_ptr<Module>> ModuleOrErr =
getLazyBitcodeModule(std::move(Buffer), Context);
- return std::unique_ptr<Module>(ModuleOrErr.get());
+ return std::move(ModuleOrErr.get());
}
TEST(BitReaderTest, DematerializeFunctionPreservesLinkageType) {
OpenPOWER on IntegriCloud