Skip to content

Commit a970c8d

Browse files
ZequanWucopybara-github
authored andcommitted
Remove LIFETIME_BOUND on function that returns void.
Upcoming clange change (llvm/llvm-project#114203) makes clang to emit an error when [[lifetimebound]] attribute is applied on a function implicit object parameter while the function returns void. This instance found by https://source.chromium.org/search?q=(void%5C%20.*LIFETIME_BOUND). Bug: 378948410 Change-Id: Id6823fb5950f8bedff90a0ddc63ed9fe7bfa9a99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6021322 Commit-Queue: Nico Weber <[email protected]> Auto-Submit: Zequan Wu <[email protected]> Reviewed-by: Nico Weber <[email protected]> Cr-Commit-Position: refs/heads/main@{#1382755} NOKEYCHECK=True GitOrigin-RevId: 0dd182c28caed0ce8eee36c25c1ef3d85dc592d0
1 parent d7742d4 commit a970c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/zip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Zipper {
7373
}
7474

7575
template <std::size_t... Is>
76-
constexpr void advance(std::index_sequence<Is...>) LIFETIME_BOUND {
76+
constexpr void advance(std::index_sequence<Is...>) {
7777
CHECK(operator!=(ZipEnd()));
7878
// SAFETY: The increment is safe as it has been just CHECKed so it is
7979
// guaranteed to be inside [begin_, end_).

0 commit comments

Comments
 (0)