mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-24 23:05:54 +00:00
[CK] fix clang lifetime bound error in ck_builder. (#5571)
## Motivation This resolves the compilation error with latest develop compiler branch. ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This commit is contained in:
@@ -47,7 +47,7 @@ class TreeFormatter
|
||||
|
||||
// Add a child node, returns a reference to it for further nesting
|
||||
template <typename... Args>
|
||||
TreeFormatter& add(Args&&... args)
|
||||
TreeFormatter& add(Args&&... args) [[clang::lifetimebound]]
|
||||
{
|
||||
children_.emplace_back(std::forward<Args>(args)...);
|
||||
return children_.back();
|
||||
|
||||
Reference in New Issue
Block a user