We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a56b03 commit 0a20ab9Copy full SHA for 0a20ab9
mlir/lib/Dialect/MLProgram/Transforms/PipelineGlobalOps.cpp
@@ -148,8 +148,9 @@ void MLProgramPipelineGlobals::processBlock(
148
if (auto store = mlir::dyn_cast<GlobalStoreOp>(op)) {
149
auto ref = store.getGlobal();
150
symbolStore.insert(ref);
151
- if (previousStores.contains(ref)) {
152
- toDelete.push_back(previousStores.find(ref)->getSecond());
+ auto it = previousStores.find(ref);
+ if (it != previousStores.end()) {
153
+ toDelete.push_back(it->getSecond());
154
}
155
156
previousLoads[ref] = store.getValue();
0 commit comments