make sure macos function has 'macos' in its name

This commit is contained in:
Ralf Jung 2020-04-30 19:38:17 +02:00
parent 351d46d3fb
commit ba670d6970
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
let dtor = this.memory.get_fn(dtor)?.as_instance()?;
let data = this.read_scalar(args[1])?.not_undef()?;
let active_thread = this.get_active_thread()?;
this.machine.tls.set_thread_dtor(active_thread, dtor, data)?;
this.machine.tls.set_macos_thread_dtor(active_thread, dtor, data)?;
}
// Querying system information

View file

@ -136,7 +136,7 @@ impl<'tcx> TlsData<'tcx> {
/// implementation](https://github.com/opensource-apple/dyld/blob/195030646877261f0c8c7ad8b001f52d6a26f514/src/threadLocalVariables.c#L389):
///
/// // NOTE: this does not need locks because it only operates on current thread data
pub fn set_thread_dtor(
pub fn set_macos_thread_dtor(
&mut self,
thread: ThreadId,
dtor: ty::Instance<'tcx>,