We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160ae4e commit 07dec29Copy full SHA for 07dec29
rust/src/render_layer.rs
@@ -161,10 +161,9 @@ pub trait RenderLayer: Sized {
161
Some((probe_line.ty, probe_line.basic_block.to_owned(), line_block))
162
})
163
.flat_map(|(line_ty, basic_block, lines)| {
164
- match line_ty {
165
- LinearDisassemblyLineType::CodeDisassemblyLineType => {
+ match (basic_block, line_ty) {
+ (Some(block), LinearDisassemblyLineType::CodeDisassemblyLineType) => {
166
// Dealing with code lines.
167
- let block = basic_block.expect("Code line has no basic block");
168
let function = block.function();
169
let text_lines = lines.into_iter().map(|line| line.contents).collect();
170
let new_text_lines = self.apply_to_block(&block, text_lines);
0 commit comments