File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1192,8 +1192,8 @@ void IRLinker::prepareCompileUnitsForImport() {
1192
1192
// When importing for ThinLTO, prevent importing of types listed on
1193
1193
// the DICompileUnit that we don't need a copy of in the importing
1194
1194
// module. They will be emitted by the originating module.
1195
- for (unsigned I = 0 , E = SrcCompileUnits->getNumOperands (); I != E; ++I ) {
1196
- auto *CU = cast<DICompileUnit>(SrcCompileUnits-> getOperand (I) );
1195
+ for (MDNode *N : SrcCompileUnits->operands () ) {
1196
+ auto *CU = cast<DICompileUnit>(N );
1197
1197
assert (CU && " Expected valid compile unit" );
1198
1198
// Enums, macros, and retained types don't need to be listed on the
1199
1199
// imported DICompileUnit. This means they will only be imported
You can’t perform that action at this time.
0 commit comments