| 158 | } |
| 159 | |
| 160 | absl::Status ErrorValue::ToStatus() const& { |
| 161 | ABSL_DCHECK(*this); |
| 162 | |
| 163 | if (arena_ == nullptr) { |
| 164 | return *std::launder( |
| 165 | reinterpret_cast<const absl::Status*>(&status_.val[0])); |
| 166 | } |
| 167 | return *status_.ptr; |
| 168 | } |
| 169 | |
| 170 | absl::Status ErrorValue::ToStatus() && { |
| 171 | ABSL_DCHECK(*this); |
no outgoing calls