diff options
Diffstat (limited to 'mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp')
-rw-r--r-- | mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp b/mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp index d3c5fa4e252f..391cb50c4bd4 100644 --- a/mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp +++ b/mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp @@ -24,7 +24,7 @@ struct TestShapeMappingPass return "Print the contents of a constructed shape mapping information."; } void runOnOperation() override { - llvm::Optional<std::reference_wrapper<shape::ShapeMappingAnalysis>> + std::optional<std::reference_wrapper<shape::ShapeMappingAnalysis>> maybeAnalysis = getCachedAnalysis<shape::ShapeMappingAnalysis>(); if (maybeAnalysis.has_value()) maybeAnalysis->get().print(llvm::errs()); |