aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr "Alex" Zinenko <git@ozinenko.com>2024-07-08 22:26:12 +0200
committerGitHub <noreply@github.com>2024-07-08 22:26:12 +0200
commitbf599025300c7cc5c5fad8ce4aa51398b5525339 (patch)
tree0a0ffc4419f8975e0cf8aab38e635d937d63757c
parent73257ee16a7f030d98d9b631fd7753b65c3946e9 (diff)
downloadllvm-users/stellaraccident/mlir_py_pass_assert_fix.zip
llvm-users/stellaraccident/mlir_py_pass_assert_fix.tar.gz
llvm-users/stellaraccident/mlir_py_pass_assert_fix.tar.bz2
Apply suggestions from code reviewusers/stellaraccident/mlir_py_pass_assert_fix
-rw-r--r--mlir/lib/Bindings/Python/Pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Bindings/Python/Pass.cpp b/mlir/lib/Bindings/Python/Pass.cpp
index b3fa3d0..a641803 100644
--- a/mlir/lib/Bindings/Python/Pass.cpp
+++ b/mlir/lib/Bindings/Python/Pass.cpp
@@ -123,11 +123,11 @@ void mlir::python::populatePassManagerSubmodule(py::module &m) {
op.getOperation().getContext()->clearOperationsInside(op);
}
// Actually run the pass manager.
- PyMlirContext::ErrorCapture error_capture(
+ PyMlirContext::ErrorCapture errorCapture(
op.getOperation().getContext());
MlirLogicalResult status = mlirPassManagerRunOnOp(
passManager.get(), op.getOperation().get());
- auto errors = error_capture.take();
+ auto errors = errorCapture.take();
if (mlirLogicalResultIsFailure(status)) {
throw MLIRError("Failure while executing pass pipeline",
std::move(errors));