From 72068410c2497796e5579d77da76473af4294cf3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 7 Oct 2026 16:50:19 +0000 Subject: [PATCH] On verifier failure, don't print a pointer to the File. (#7915) If the verifier fails, we tried to dump the SemIR::File, but accidentally dumped a pointer to it instead. However, the raw file dump is huge and unwieldy, and I don't think it's really helpful, so instead of including it here, we now just omit the pointer. --- toolchain/check/context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolchain/check/context.cpp b/toolchain/check/context.cpp index 050129730151..41a3eb233950 100644 --- a/toolchain/check/context.cpp +++ b/toolchain/check/context.cpp @@ -79,8 +79,7 @@ auto Context::VerifyOnFinish() const -> void { #ifndef NDEBUG if (auto verify = sem_ir_->Verify(); !verify.ok()) { - CARBON_FATAL("{0}Built invalid semantics IR: {1}\n", sem_ir_, - verify.error()); + CARBON_FATAL("Built invalid SemIR: {1}\n", verify.error()); } #endif }