[Mlir-commits] [mlir] d467515 - [MLIR] Fix cast warning in pass tablegen test
Michele Scuttari
llvmlistbot at llvm.org
Wed Aug 24 07:36:31 PDT 2022
Author: Michele Scuttari
Date: 2022-08-24T16:35:50+02:00
New Revision: d467515602fc55deddc910267f83c70c2e15f613
URL: https://github.com/llvm/llvm-project/commit/d467515602fc55deddc910267f83c70c2e15f613
DIFF: https://github.com/llvm/llvm-project/commit/d467515602fc55deddc910267f83c70c2e15f613.diff
LOG: [MLIR] Fix cast warning in pass tablegen test
Added:
Modified:
mlir/unittests/TableGen/PassGenTest.cpp
mlir/unittests/TableGen/passes.td
Removed:
################################################################################
diff --git a/mlir/unittests/TableGen/PassGenTest.cpp b/mlir/unittests/TableGen/PassGenTest.cpp
index 0de960099ae2a..7de17b5ec4b11 100644
--- a/mlir/unittests/TableGen/PassGenTest.cpp
+++ b/mlir/unittests/TableGen/PassGenTest.cpp
@@ -63,7 +63,7 @@ struct TestPassWithOptions
return TestPassWithOptionsBase<TestPassWithOptions>::clone();
}
- unsigned getTestOption() const { return testOption; }
+ int getTestOption() const { return testOption; }
llvm::ArrayRef<int64_t> getTestListOption() const { return testListOption; }
};
diff --git a/mlir/unittests/TableGen/passes.td b/mlir/unittests/TableGen/passes.td
index c1ef136a1b7e7..5e53cb99ef9fa 100644
--- a/mlir/unittests/TableGen/passes.td
+++ b/mlir/unittests/TableGen/passes.td
@@ -18,7 +18,7 @@ def TestPassWithOptions : Pass<"test"> {
let summary = "Test pass with options";
let options = [
- Option<"testOption", "testOption", "unsigned", "0", "Test option">,
+ Option<"testOption", "testOption", "int", "0", "Test option">,
ListOption<"testListOption", "test-list-option", "int64_t",
"Test list option">
];
More information about the Mlir-commits
mailing list