diff options
Diffstat (limited to 'mlir/test/lib/Transforms/TestLoopMapping.cpp')
-rw-r--r-- | mlir/test/lib/Transforms/TestLoopMapping.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/Transforms/TestLoopMapping.cpp b/mlir/test/lib/Transforms/TestLoopMapping.cpp index fb1ef64d26f..bf354670f92 100644 --- a/mlir/test/lib/Transforms/TestLoopMapping.cpp +++ b/mlir/test/lib/Transforms/TestLoopMapping.cpp @@ -51,7 +51,7 @@ public: func.walk<loop::ForOp>([&processorIds, &numProcessors](loop::ForOp op) { // Ignore nested loops. - if (op.getContainingRegion()->getParentOfType<loop::ForOp>()) + if (op.getParentRegion()->getParentOfType<loop::ForOp>()) return; mapLoopToProcessorIds(op, processorIds, numProcessors); }); |