Skip to content

Commit

Permalink
correct LLVMRustCreateThinLTOData arg types
Browse files Browse the repository at this point in the history
  • Loading branch information
klensy committed Oct 27, 2024
1 parent edbd939 commit a0b55d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ getFirstDefinitionForLinker(const GlobalValueSummaryList &GVSummaryList) {
// here is basically the same as before threads are spawned in the `run`
// function of `lib/LTO/ThinLTOCodeGenerator.cpp`.
extern "C" LLVMRustThinLTOData *
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, int num_modules,
const char **preserved_symbols, int num_symbols) {
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, unsigned num_modules,
const char **preserved_symbols, unsigned num_symbols) {
auto Ret = std::make_unique<LLVMRustThinLTOData>();

// Load each module's summary and merge it into one combined index
Expand Down

0 comments on commit a0b55d5

Please sign in to comment.