Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
scottmcm and RalfJung committed Aug 6, 2023
1 parent 4e958a5 commit 659fabd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
let params = vec![AbiParam::new(fx.pointer_type); 3];
let returns = vec![AbiParam::new(types::I32)];
let args = &[lhs_ptr, rhs_ptr, bytes_val];
// Here we assume that the `memcmp` provided by the target is a NOP for size 0.
let cmp = fx.lib_call("memcmp", params, returns, args)[0];
ret.write_cvalue(fx, CValue::by_val(cmp, ret.layout()));
}
Expand Down

0 comments on commit 659fabd

Please sign in to comment.