@@ -367,7 +367,7 @@ void MLIRDocument::getLocationsOf(const lsp::URIForFile &uri,
367
367
if (contains (op.loc , posLoc))
368
368
return collectLocationsFromLoc (op.op ->getLoc (), locations, uri);
369
369
for (const auto &result : op.resultGroups )
370
- if (containsPosition (result.second ))
370
+ if (containsPosition (result.definition ))
371
371
return collectLocationsFromLoc (op.op ->getLoc (), locations, uri);
372
372
for (const auto &symUse : op.symbolUses ) {
373
373
if (contains (symUse, posLoc)) {
@@ -404,15 +404,15 @@ void MLIRDocument::findReferencesOf(const lsp::URIForFile &uri,
404
404
for (const AsmParserState::OperationDefinition &op : asmState.getOpDefs ()) {
405
405
if (contains (op.loc , posLoc)) {
406
406
for (const auto &result : op.resultGroups )
407
- appendSMDef (result.second );
407
+ appendSMDef (result.definition );
408
408
for (const auto &symUse : op.symbolUses )
409
409
if (contains (symUse, posLoc))
410
410
references.push_back (getLocationFromLoc (sourceMgr, symUse, uri));
411
411
return ;
412
412
}
413
413
for (const auto &result : op.resultGroups )
414
- if (isDefOrUse (result.second , posLoc))
415
- return appendSMDef (result.second );
414
+ if (isDefOrUse (result.definition , posLoc))
415
+ return appendSMDef (result.definition );
416
416
for (const auto &symUse : op.symbolUses ) {
417
417
if (!contains (symUse, posLoc))
418
418
continue ;
@@ -456,13 +456,13 @@ Optional<lsp::Hover> MLIRDocument::findHover(const lsp::URIForFile &uri,
456
456
// Check if the position points at a result group.
457
457
for (unsigned i = 0 , e = op.resultGroups .size (); i < e; ++i) {
458
458
const auto &result = op.resultGroups [i];
459
- if (!isDefOrUse (result.second , posLoc, &hoverRange))
459
+ if (!isDefOrUse (result.definition , posLoc, &hoverRange))
460
460
continue ;
461
461
462
462
// Get the range of results covered by the over position.
463
- unsigned resultStart = result.first ;
464
- unsigned resultEnd =
465
- (i == e - 1 ) ? op. op -> getNumResults () : op.resultGroups [i + 1 ].first ;
463
+ unsigned resultStart = result.startIndex ;
464
+ unsigned resultEnd = (i == e - 1 ) ? op. op -> getNumResults ()
465
+ : op.resultGroups [i + 1 ].startIndex ;
466
466
return buildHoverForOperationResult (hoverRange, op.op , resultStart,
467
467
resultEnd, posLoc);
468
468
}
0 commit comments