Skip to content

Commit

Permalink
analyze: address comments from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
spernsteiner committed Dec 3, 2024
1 parent e3057de commit 7013b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c2rust-analyze/src/dataflow/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ impl<'tcx> TypeChecker<'tcx, '_> {
}

fn pointee_type(&self, ptr: PointerId) -> Option<LTy<'tcx>> {
assert!(!ptr.is_none());
self.pointee_types
.as_ref()
.and_then(|pointee_types| pointee_types[ptr].get_sole_lty())
Expand Down

0 comments on commit 7013b6d

Please sign in to comment.