diff --git a/src/frontend/ir/basic_block.cpp b/src/frontend/ir/basic_block.cpp index 421e48fe..b7615f52 100644 --- a/src/frontend/ir/basic_block.cpp +++ b/src/frontend/ir/basic_block.cpp @@ -176,7 +176,10 @@ std::string DumpBlock(const IR::Block& block) { if (arg.IsEmpty()) { return ""; } else if (!arg.IsImmediate()) { - return fmt::format("%{}", inst_to_index.at(arg.GetInst())); + if (const auto iter = inst_to_index.find(arg.GetInst()); iter != inst_to_index.end()) { + return fmt::format("%{}", iter->second); + } + return fmt::format("%", reinterpret_cast(arg.GetInst())); } switch (arg.GetType()) { case Type::U1: