From de326c9345cccc718195bca1ef082a2a9a406eed Mon Sep 17 00:00:00 2001 From: cianciosa Date: Mon, 26 May 2025 23:11:52 -0400 Subject: [PATCH 1/2] DiagnosticOptions no longer needs to be wrapped in a IntrusiveRefCnt. --- graph_framework/cpu_context.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph_framework/cpu_context.hpp b/graph_framework/cpu_context.hpp index b7cea45..2213d7f 100644 --- a/graph_framework/cpu_context.hpp +++ b/graph_framework/cpu_context.hpp @@ -163,9 +163,9 @@ namespace gpu { } } - auto diagnostic_options = llvm::makeIntrusiveRefCnt (); + auto diagnostic_options = clang::DiagnosticOptions(); auto diagnostic_printer = std::make_unique (llvm::errs(), - diagnostic_options.get()); + diagnostic_options); auto diagnostic_ids = llvm::makeIntrusiveRefCnt (); clang::DiagnosticsEngine diagnostic_engine(diagnostic_ids, -- GitLab From 5588e61944d27ce9bfb11e2ee71bbb2d411f6346 Mon Sep 17 00:00:00 2001 From: cianciosa Date: Mon, 26 May 2025 23:17:14 -0400 Subject: [PATCH 2/2] Remove auto. --- graph_framework/cpu_context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph_framework/cpu_context.hpp b/graph_framework/cpu_context.hpp index 2213d7f..c16d00e 100644 --- a/graph_framework/cpu_context.hpp +++ b/graph_framework/cpu_context.hpp @@ -163,7 +163,7 @@ namespace gpu { } } - auto diagnostic_options = clang::DiagnosticOptions(); + clang::DiagnosticOptions diagnostic_options; auto diagnostic_printer = std::make_unique (llvm::errs(), diagnostic_options); -- GitLab