Skip to content

Commit f35978e

Browse files
committed
correct LLVMRustCreateThinLTOData arg types
1 parent be33e4f commit f35978e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,9 @@ 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,
1256+
unsigned num_symbols) {
12561257
auto Ret = std::make_unique<LLVMRustThinLTOData>();
12571258

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

0 commit comments

Comments
 (0)