diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-29 03:11:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 03:11:42 -0700 |
| commit | a70b90b822694753e98c35c0a35a00b3edf09146 (patch) | |
| tree | 76c9a4f76439897a57409b52a3ae35ae48ddcd13 /compiler/rustc_parse/src | |
| parent | b8f08fe023f9d18b5047cbc6a9607c8c90c5ac04 (diff) | |
| parent | 2b326e381763165285b305ac0dcc563a702b073f (diff) | |
| download | rust-a70b90b822694753e98c35c0a35a00b3edf09146.tar.gz rust-a70b90b822694753e98c35c0a35a00b3edf09146.zip | |
Rollup merge of #132216 - klensy:c_uint, r=cuviper
correct LLVMRustCreateThinLTOData arg types
`LLVMRustCreateThinLTOData` defined in rust as
```rust
pub fn LLVMRustCreateThinLTOData(
Modules: *const ThinLTOModule,
NumModules: c_uint,
PreservedSymbols: *const *const c_char,
PreservedSymbolsLen: c_uint,
) -> Option<&'static mut ThinLTOData>;
```
but in cpp as
```cpp
extern "C" LLVMRustThinLTOData *
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, int num_modules,
const char **preserved_symbols, int num_symbols) {
```
(note `c_unit` vs `int` types). Let it be actually `size_t`.
Also fixes return type of `LLVMRustDIBuilderCreateOpLLVMFragment` to uint64_t as other similar functions around, which should be correct, i assume.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
