mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
intrinsics: stub out compare_bytes
(as zombie instead of fatal error).
This commit is contained in:
parent
8637102791
commit
acf85064d0
@ -327,6 +327,12 @@ impl<'a, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
sym::compare_bytes => {
|
||||
let undef = self.undef(ret_ty);
|
||||
self.zombie(undef.def(self), "memcmp not implemented");
|
||||
undef
|
||||
}
|
||||
|
||||
_ => self.fatal(format!("TODO: Unknown intrinsic '{name}'")),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user