[clang] d2405e1 - Fix lifetime of DiagnosticsEngine in diagtool.
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri May 6 07:22:09 PDT 2022
Author: Sam McCall
Date: 2022-05-06T16:21:49+02:00
New Revision: d2405e1da5b6ee8d6568469610071d86414cdc93
URL: https://github.com/llvm/llvm-project/commit/d2405e1da5b6ee8d6568469610071d86414cdc93
DIFF: https://github.com/llvm/llvm-project/commit/d2405e1da5b6ee8d6568469610071d86414cdc93.diff
LOG: Fix lifetime of DiagnosticsEngine in diagtool.
Added:
Modified:
clang/tools/diagtool/ShowEnabledWarnings.cpp
Removed:
################################################################################
diff --git a/clang/tools/diagtool/ShowEnabledWarnings.cpp b/clang/tools/diagtool/ShowEnabledWarnings.cpp
index e5a7b2532824..285efe6ae05b 100644
--- a/clang/tools/diagtool/ShowEnabledWarnings.cpp
+++ b/clang/tools/diagtool/ShowEnabledWarnings.cpp
@@ -68,7 +68,7 @@ createDiagnostics(unsigned int argc, char **argv) {
CIOpts.Diags =
new DiagnosticsEngine(DiagIDs, new DiagnosticOptions(), DiagsBuffer);
std::unique_ptr<CompilerInvocation> Invocation =
- createInvocation(Args, std::move(CIOpts));
+ createInvocation(Args, CIOpts);
if (!Invocation)
return nullptr;
More information about the cfe-commits
mailing list