fix remove ostream<<nullptr_t
Some checks failed
linux-arm-gcc / linux-gcc-arm (Release) (push) Successful in 4m48s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Successful in 5m0s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Successful in 5m18s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Successful in 4m45s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 1m47s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 3m58s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Successful in 5m25s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 3m20s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m59s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 43s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 46s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 4m15s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 16m54s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 16m26s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 15m13s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Waiting to run

This commit is contained in:
tqcq 2024-06-17 13:18:22 +08:00
parent 0941e0b4ff
commit 56a12ea2e2
2 changed files with 6 additions and 6 deletions

View File

@ -105,9 +105,9 @@ TILE_INSTANCE_CHRONO_FORMAT_AS(std::chrono::years, "y")
#include "fmt/format.h" #include "fmt/format.h"
#include "fmt/ostream.h" #include "fmt/ostream.h"
inline std::ostream &operator<<(std::ostream &os, std::nullptr_t) { // inline std::ostream &operator<<(std::ostream &os, std::nullptr_t) {
return os << "nullptr"; // return os << "nullptr";
} // }
// template <typename T, // template <typename T,
// typename = tile::enable_if_t< // typename = tile::enable_if_t<

View File

@ -46,8 +46,8 @@ struct alignas(hardware_destructive_interference_size) Fiber::FiberContext {
void FiberEntry(fcontext_transfer_t t) { void FiberEntry(fcontext_transfer_t t) {
std::function<void()> *fn = static_cast<std::function<void()> *>(t.data); std::function<void()> *fn = static_cast<std::function<void()> *>(t.data);
TILE_CHECK_NE(t.data, nullptr); TILE_CHECK(t.data != nullptr);
TILE_CHECK_NE(t.fctx, nullptr); TILE_CHECK(t.fctx != nullptr);
Fiber *self = nullptr; Fiber *self = nullptr;
try { try {
@ -84,7 +84,7 @@ fcontext_t CreateFiber(void *stack, std::size_t stack_size,
std::function<void()> *fn) { std::function<void()> *fn) {
void *stack_top = static_cast<char *>(stack) + stack_size; void *stack_top = static_cast<char *>(stack) + stack_size;
const fcontext_t fctx = make_fcontext(stack_top, stack_size, FiberEntry); const fcontext_t fctx = make_fcontext(stack_top, stack_size, FiberEntry);
TILE_CHECK_NE(fctx, nullptr); TILE_CHECK(fctx != nullptr);
return jump_fcontext(fctx, fn).fctx; return jump_fcontext(fctx, fn).fctx;
} }