Skip to content

Commit a0b55d5

Browse files
committed
correct LLVMRustCreateThinLTOData arg types
1 parent edbd939 commit a0b55d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,8 @@ getFirstDefinitionForLinker(const GlobalValueSummaryList &GVSummaryList) {
12511251
// here is basically the same as before threads are spawned in the `run`
12521252
// function of `lib/LTO/ThinLTOCodeGenerator.cpp`.
12531253
extern "C" LLVMRustThinLTOData *
1254-
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, int num_modules,
1255-
const char **preserved_symbols, int num_symbols) {
1254+
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, unsigned num_modules,
1255+
const char **preserved_symbols, unsigned num_symbols) {
12561256
auto Ret = std::make_unique<LLVMRustThinLTOData>();
12571257

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

0 commit comments

Comments
 (0)