File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1117,7 +1117,7 @@ LLVMRustGetThinLTOModuleImports(const LLVMRustThinLTOData *Data) {
1117
1117
new LLVMRustThinLTOModuleImports[Data->ImportLists .size () + 1 ];
1118
1118
size_t module_index = 0 ;
1119
1119
1120
- for (const auto & module : Data->ImportLists ) {
1120
+ for (const auto & module : Data->ImportLists ) {
1121
1121
StringRef module_id = module .getKey ();
1122
1122
const auto & imports = module .getValue ();
1123
1123
@@ -1130,7 +1130,8 @@ LLVMRustGetThinLTOModuleImports(const LLVMRustThinLTOData *Data) {
1130
1130
imports_array[0 ] = strndup (module_id.data (), module_id.size ());
1131
1131
1132
1132
size_t imports_array_index = 1 ;
1133
- for (const auto imported_module_id : imports.keys ()) {
1133
+ for (const auto & imported_module : imports) {
1134
+ StringRef imported_module_id = imported_module.getKey ();
1134
1135
// The following values are the names of the imported modules.
1135
1136
imports_array[imports_array_index] = strndup (imported_module_id.data (),
1136
1137
imported_module_id.size ());
You can’t perform that action at this time.
0 commit comments