intrinsics: stub out compare_bytes (as zombie instead of fatal error).

This commit is contained in:
Eduard-Mihai Burtescu 2023-11-21 17:27:52 +02:00
parent 8637102791
commit acf85064d0

View File

@ -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}'")), _ => self.fatal(format!("TODO: Unknown intrinsic '{name}'")),
}; };