Skip to content

Commit

Permalink
Fix erroneous TBR option setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vaithak authored and vgvassilev committed Mar 18, 2024
1 parent d2df900 commit c60fef3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/ClangPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c60fef3

Please sign in to comment.