[mlir][bytecode] Fix external resource bytecode parsing (#97650)

The key was being dropped for external resources because they aren't
present in the dialect resource name mapper.
This commit is contained in:
Jeff Niu
2024-07-03 15:32:45 -07:00
committed by GitHub
parent 10b43f429a
commit af7ee51a90
2 changed files with 20 additions and 1 deletions

View File

@@ -706,7 +706,7 @@ LogicalResult ResourceSectionReader::initialize(
auto resolveKey = [&](StringRef key) -> StringRef {
auto it = dialectResourceHandleRenamingMap.find(key);
if (it == dialectResourceHandleRenamingMap.end())
return "";
return key;
return it->second;
};