diff options
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index d2f964e4d24..146ad454a0d 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -511,7 +511,7 @@ bool LTOCodeGenerator::setupOptimizationRemarks() { return false; } Context.setDiagnosticsOutputFile( - new yaml::Output(DiagnosticOutputFile->os())); + llvm::make_unique<yaml::Output>(DiagnosticOutputFile->os())); } return true; } |