-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix adopting
AnyDependency
storage in case the target `AnyDependenc…
…y` has `inline_size == 0` (which imposes additional constraints on the stored `Dependency` regarding its stability and trivial relocatability), while the source `AnyDependency` stores a `Dependency` which does not satisfy the additional constraints, yet its size fits. In this case the storage used to be adopted, and the resulting `AnyDependency` was declaring itself stable, even though the stored `Dependency` was not necessarily stable. Also, change `IsInline` from a type trait to a constexpr function. This will simplify a future change when available size and alignment are known only at runtime. PiperOrigin-RevId: 622207722
- Loading branch information
Showing
2 changed files
with
119 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters