Skip to content

Commit 3b490bf

Browse files
committed
Auto merge of #3334 - RalfJung:nullfix, r=RalfJung
remove a wrong bitwise negation This is a silly mistake I introduced in a1233a7.
2 parents 40bb3c1 + 2515605 commit 3b490bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
354354
state.last_key = Some(key);
355355
trace!("Running TLS dtor {:?} on {:?} at {:?}", instance, ptr, active_thread);
356356
assert!(
357-
!ptr.to_target_usize(this).unwrap() != 0,
357+
ptr.to_target_usize(this).unwrap() != 0,
358358
"data can't be NULL when dtor is called!"
359359
);
360360

0 commit comments

Comments
 (0)