We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff158e commit f25a3e5Copy full SHA for f25a3e5
src/intrinsics/mod.rs
@@ -1020,6 +1020,16 @@ fn codegen_regular_intrinsic_call<'tcx>(
1020
ret.write_cvalue(fx, CValue::by_val(is_eq_value, ret.layout()));
1021
};
1022
1023
+ const_allocate, (c size, c align) {
1024
+ // returns a null pointer at runtime.
1025
+ let null = fx.bcx.ins().iconst(fx.pointer_type, 0);
1026
+ ret.write_cvalue(fx, CValue::by_val(null, ret.layout()));
1027
+ };
1028
+
1029
+ const_deallocate, (c ptr, c size, c align) {
1030
+ // nop at runtime.
1031
1032
1033
black_box, (c a) {
1034
// FIXME implement black_box semantics
1035
ret.write_cvalue(fx, a);
0 commit comments