We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e958a5 commit 659fabdCopy full SHA for 659fabd
src/intrinsics/mod.rs
@@ -1164,6 +1164,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
1164
let params = vec![AbiParam::new(fx.pointer_type); 3];
1165
let returns = vec![AbiParam::new(types::I32)];
1166
let args = &[lhs_ptr, rhs_ptr, bytes_val];
1167
+ // Here we assume that the `memcmp` provided by the target is a NOP for size 0.
1168
let cmp = fx.lib_call("memcmp", params, returns, args)[0];
1169
ret.write_cvalue(fx, CValue::by_val(cmp, ret.layout()));
1170
}
0 commit comments