From 7b9406b9a6b784b205e9ba55402d3896e2d6a11b Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Mon, 18 Mar 2024 14:07:52 +0100 Subject: [PATCH] Fix erroneous TBR option setting --- tools/ClangPlugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/ClangPlugin.cpp b/tools/ClangPlugin.cpp index 8be825c3f..9453e3c16 100644 --- a/tools/ClangPlugin.cpp +++ b/tools/ClangPlugin.cpp @@ -393,12 +393,8 @@ namespace clad { Sema::GlobalEagerInstantiationScope GlobalInstantiations(S, Enabled); Sema::LocalEagerInstantiationScope LocalInstantiations(S); - for (DiffRequest& request : m_DiffSchedule) { - // FIXME: flags have to be set manually since DiffCollector's - // constructor does not have access to m_DO. - request.EnableTBRAnalysis = m_DO.EnableTBRAnalysis; + for (DiffRequest& request : m_DiffSchedule) ProcessDiffRequest(request); - } // Put the TUScope in a consistent state after clad is done. S.TUScope = nullptr; // Force emission of the produced pending template instantiations.