MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / process_place

Method process_place

src/analysis/pointsto/mod.rs:482–493  ·  view source on GitHub ↗
(place_ref: PlaceRef<'tcx>)

Source from the content-addressed store, hash-verified

480 }
481
482 fn process_place(place_ref: PlaceRef<'tcx>) -> AccessPattern<'tcx> {
483 match place_ref {
484 PlaceRef {
485 local: l,
486 projection: [ProjectionElem::Deref, ref remain @ ..],
487 } => AccessPattern::Indirect(PlaceRef {
488 local: l,
489 projection: remain,
490 }),
491 _ => AccessPattern::Direct(place_ref),
492 }
493 }
494
495 fn process_operand(operand: &Operand<'tcx>) -> Option<AccessPattern<'tcx>> {
496 match operand {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected