Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
qinheping committed Aug 17, 2024
1 parent 5aa08b7 commit b59205a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/scanner/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,9 @@ impl<'a> MirVisitor for IteratorVisitor<'a> {
self.props.loops += 1;
}
}
TerminatorKind::InlineAsm { destination, .. } => {
if let Some(target) = destination {
self.props.loops += self.visited_blocks.contains(target) as usize;
TerminatorKind::InlineAsm { destination: Some(target), .. } => {
if self.visited_blocks.contains(target) {
self.props.loops += 1;
}
}
// No targets in other terminators.
Expand Down

0 comments on commit b59205a

Please sign in to comment.