Skip to content

Commit acf8506

Browse files
committed
intrinsics: stub out compare_bytes (as zombie instead of fatal error).
1 parent 8637102 commit acf8506

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/rustc_codegen_spirv/src/builder/intrinsics.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ impl<'a, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'tcx> {
327327
}
328328
}
329329

330+
sym::compare_bytes => {
331+
let undef = self.undef(ret_ty);
332+
self.zombie(undef.def(self), "memcmp not implemented");
333+
undef
334+
}
335+
330336
_ => self.fatal(format!("TODO: Unknown intrinsic '{name}'")),
331337
};
332338

0 commit comments

Comments
 (0)