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 f99950f commit eab7732Copy full SHA for eab7732
compiler/rustc_mir_dataflow/src/value_analysis.rs
@@ -116,10 +116,19 @@ pub trait ValueAnalysis<'tcx> {
116
117
fn super_intrinsic(
118
&self,
119
- _intrinsic: &NonDivergingIntrinsic<'tcx>,
120
- _state: &mut State<Self::Value>,
+ intrinsic: &NonDivergingIntrinsic<'tcx>,
+ state: &mut State<Self::Value>,
121
) {
122
- todo!();
+ match intrinsic {
123
+ NonDivergingIntrinsic::Assume(..) => {
124
+ // Could use this, but ignoring it is sound.
125
+ }
126
+ NonDivergingIntrinsic::CopyNonOverlapping(CopyNonOverlapping { dst, .. }) => {
127
+ if let Some(place) = dst.place() {
128
+ state.flood(place.as_ref(), self.map());
129
130
131
132
}
133
134
fn handle_assign(
0 commit comments