From 42049942bb0203c60dd072f85b040f95f2435953 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Thu, 19 Sep 2024 20:06:36 +0800 Subject: [PATCH] fix pipeline --- src/babylon/future.hpp | 1 + src/babylon/time.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/babylon/future.hpp b/src/babylon/future.hpp index 6b3d87d..9507e35 100644 --- a/src/babylon/future.hpp +++ b/src/babylon/future.hpp @@ -310,6 +310,7 @@ FutureContext::seal() noexcept { template inline typename FutureContext::ValueType& FutureContext::value() noexcept { + assert(ready() && "cannot read value before ready"); return *reinterpret_cast(_storage); } diff --git a/src/babylon/time.cpp b/src/babylon/time.cpp index 213f25c..5d1d215 100644 --- a/src/babylon/time.cpp +++ b/src/babylon/time.cpp @@ -99,6 +99,7 @@ int FastLocalTimeConverter::to_weekday(::absl::CivilSecond civil) noexcept { case ::absl::Weekday::saturday: return 6; } + ::abort(); } ABSL_ATTRIBUTE_NOINLINE