Modernize the .ll parsing interface.
[oota-llvm.git] / unittests / IR / ValueTest.cpp
index 61e44a908d4e10cd2634323daee4c2162f23906c..dc5794b46d258a2d9a78aacc4a63f8ec19cfd423 100644 (file)
@@ -34,7 +34,7 @@ TEST(ValueTest, UsedInBasicBlock) {
                              "  ret void\n"
                              "}\n";
   SMDiagnostic Err;
-  Module *M = ParseAssemblyString(ModuleString, nullptr, Err, C);
+  std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
 
   Function *F = M->getFunction("f");