From e7493d911271f54bf80c403aa674eefa97dd3a65 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 18 Mar 2025 12:43:49 -0700 Subject: [PATCH] Dump the inst block with the specific (#5138) Every time I dump a specific id, the next thing I do is dump the inst block. This saves typing `SemIR::MakeInstBlockId(x)` all the time. --- toolchain/sem_ir/dump.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/toolchain/sem_ir/dump.cpp b/toolchain/sem_ir/dump.cpp index 41dd9307a3ed..7d79559fc5f3 100644 --- a/toolchain/sem_ir/dump.cpp +++ b/toolchain/sem_ir/dump.cpp @@ -247,6 +247,7 @@ LLVM_DUMP_METHOD auto Dump(const File& file, LLVM_DUMP_METHOD auto Dump(const File& file, SpecificId specific_id) -> void { DumpNoNewline(file, specific_id); llvm::errs() << '\n'; + Dump(file, file.specifics().Get(specific_id).args_id); } LLVM_DUMP_METHOD auto Dump(const File& file,