| Index: tools/pnacl-benchmark/pnacl-benchmark.cpp
|
| diff --git a/tools/pnacl-benchmark/pnacl-benchmark.cpp b/tools/pnacl-benchmark/pnacl-benchmark.cpp
|
| index f5721f1843df4a8bf1def52435a1226d1417c28d..3bd5f256b00725eaa18ffeb30ec09f00ce5728f5 100644
|
| --- a/tools/pnacl-benchmark/pnacl-benchmark.cpp
|
| +++ b/tools/pnacl-benchmark/pnacl-benchmark.cpp
|
| @@ -209,8 +209,9 @@ void BenchmarkIRParsing() {
|
| TimingOperationBlock T("LLVM IR parsing", BufSize);
|
| SMDiagnostic Err;
|
| raw_ostream *Verbose = VerboseErrors ? &errs() : nullptr;
|
| - Module *M = NaClParseIRFile(InputFilename, PNaClFormat,
|
| - Err, Verbose, getGlobalContext());
|
| + std::unique_ptr<Module> M = NaClParseIRFile(
|
| + InputFilename, PNaClFormat,
|
| + Err, Verbose, getGlobalContext());
|
|
|
| if (!M) {
|
| report_fatal_error("Unable to NaClParseIRFile");
|
|
|