mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
[clangd] Fix C++20 build failure
This commit is contained in:
@@ -222,6 +222,9 @@ public:
|
||||
}
|
||||
|
||||
void operator()(const DirectiveTree::Conditional &C) {
|
||||
// C.Branches needs to see the DirectiveTree definition, otherwise build
|
||||
// fails in C++20.
|
||||
[[maybe_unused]] DirectiveTree Dummy;
|
||||
for (const auto &[_, SubTree] : C.Branches)
|
||||
walk(SubTree);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user