1
Fork 0

Remove an LTO dependent cgu_reuse_tracker.set_actual_reuse call

This commit is contained in:
bjorn3 2023-09-16 14:36:49 +00:00
parent 6b9ee90c2c
commit 3dfd9dfe7c
3 changed files with 1 additions and 13 deletions

View file

@ -75,13 +75,7 @@ impl CguReuseTracker {
debug!("set_actual_reuse({cgu_name:?}, {kind:?})");
let prev_reuse = data.lock().unwrap().actual_reuse.insert(cgu_name.to_string(), kind);
if let Some(prev_reuse) = prev_reuse {
// The only time it is legal to overwrite reuse state is when
// we discover during ThinLTO that we can actually reuse the
// post-LTO version of a CGU.
assert_eq!(prev_reuse, CguReuse::PreLto);
}
assert!(prev_reuse.is_none());
}
}