From 6089a68718075da126794ae9c78911a9fa27f069 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 3 Jul 2020 18:23:53 +0200 Subject: [PATCH] Account for Rvalue::AddressOf in analyze --- src/analyze.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze.rs b/src/analyze.rs index c3436785d90..7bd2c802868 100644 --- a/src/analyze.rs +++ b/src/analyze.rs @@ -23,7 +23,7 @@ pub(crate) fn analyze(fx: &FunctionCx<'_, '_, impl Backend>) -> IndexVec match &place_and_rval.1 { - Rvalue::Ref(_, _, place) => { + Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place)=> { not_ssa(&mut flag_map, place.local) } _ => {}