diff options
Diffstat (limited to 'mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp')
| -rw-r--r-- | mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp b/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp index d90cf931385f..f62de1f17a66 100644 --- a/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp +++ b/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp @@ -162,7 +162,7 @@ struct ForOpConversion final : SCFToSPIRVPattern<scf::ForOp> { signatureConverter.remapInput(0, newIndVar); for (unsigned i = 1, e = body->getNumArguments(); i < e; i++) signatureConverter.remapInput(i, header->getArgument(i)); - body = rewriter.applySignatureConversion(&forOp.getRegion(), + body = rewriter.applySignatureConversion(&forOp.getRegion().front(), signatureConverter); // Move the blocks from the forOp into the loopOp. This is the body of the |
