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 c1678e5 commit 882c027Copy full SHA for 882c027
mlir/lib/Dialect/OpenMP/Transforms/OpenMPOffloadPrivatizationPrepare.cpp
@@ -252,7 +252,8 @@ class PrepareForOMPOffloadPrivatizationPass
252
// variable, rewrite all the uses of the original variable with
253
// the heap-allocated variable.
254
rewriter.setInsertionPoint(targetOp);
255
- rewriter.setInsertionPoint(cloneModifyAndErase(mapInfoOp));
+ mapInfoOp = cloneModifyAndErase(mapInfoOp);
256
+ rewriter.setInsertionPoint(mapInfoOp);
257
258
// Fix any members that may use varPtr to now use heapMem
259
for (auto member : mapInfoOp.getMembers()) {
0 commit comments