[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:
Illia Silin
2026-03-25 09:44:33 -07:00
committed by GitHub
parent fea325336c
commit 048a4d8fc0
2 changed files with 3 additions and 3 deletions

View File

@@ -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();