Fix the length parameter type of LLVMRustCoverageHashByteArray
The Rust-side declaration uses `libc::size_t` for the number of bytes, but the C++ declaration was using `unsigned` instead of `size_t`.
This commit is contained in:
parent
7a5ad35da4
commit
7292608e21
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ extern "C" uint64_t LLVMRustCoverageHashCString(const char *StrVal) {
|
||||||
|
|
||||||
extern "C" uint64_t LLVMRustCoverageHashByteArray(
|
extern "C" uint64_t LLVMRustCoverageHashByteArray(
|
||||||
const char *Bytes,
|
const char *Bytes,
|
||||||
unsigned NumBytes) {
|
size_t NumBytes) {
|
||||||
StringRef StrRef(Bytes, NumBytes);
|
StringRef StrRef(Bytes, NumBytes);
|
||||||
return IndexedInstrProf::ComputeHash(StrRef);
|
return IndexedInstrProf::ComputeHash(StrRef);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue