diff options
Diffstat (limited to 'mlir/unittests/IR')
-rw-r--r-- | mlir/unittests/IR/InterfaceAttachmentTest.cpp | 2 | ||||
-rw-r--r-- | mlir/unittests/IR/OperationSupportTest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mlir/unittests/IR/InterfaceAttachmentTest.cpp b/mlir/unittests/IR/InterfaceAttachmentTest.cpp index 2e1309a..16de34c 100644 --- a/mlir/unittests/IR/InterfaceAttachmentTest.cpp +++ b/mlir/unittests/IR/InterfaceAttachmentTest.cpp @@ -421,7 +421,7 @@ TEST(InterfaceAttachmentTest, PromisedInterfaces) { // Attribute interfaces use the exact same mechanism as types, so just check // that the promise mechanism works for attributes. MLIRContext context; - auto testDialect = context.getOrLoadDialect<test::TestDialect>(); + auto *testDialect = context.getOrLoadDialect<test::TestDialect>(); auto attr = test::SimpleAAttr::get(&context); // `SimpleAAttr` doesn't implement nor promises the diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp index 8a4f67b..9d75615 100644 --- a/mlir/unittests/IR/OperationSupportTest.cpp +++ b/mlir/unittests/IR/OperationSupportTest.cpp @@ -295,9 +295,9 @@ TEST(OperationEquivalenceTest, HashWorksWithFlags) { MLIRContext context; context.getOrLoadDialect<test::TestDialect>(); - auto op1 = createOp(&context); + auto *op1 = createOp(&context); // `op1` has an unknown loc. - auto op2 = createOp(&context); + auto *op2 = createOp(&context); op2->setLoc(NameLoc::get(StringAttr::get(&context, "foo"))); auto getHash = [](Operation *op, OperationEquivalence::Flags flags) { return OperationEquivalence::computeHash( |