[Mlir-commits] [mlir] [mlir] fix Undefined behavior in CastInfo::castFailed with From=<MLIRinterface> (PR #87145)

Mehdi Amini llvmlistbot at llvm.org
Fri Jul 5 06:51:41 PDT 2024


================
@@ -84,3 +87,40 @@ TEST(InterfaceTest, TestImplicitConversion) {
   typeA = typeB;
   EXPECT_EQ(typeA, typeB);
 }
+
+TEST(OperationInterfaceTest, CastOpToInterface) {
----------------
joker-eph wrote:

```suggestion
TEST(OperationInterfaceTest, CastOpInterfaceToOpInterface) {
```

Would this name be more accurate to what this test coverage adds?

https://github.com/llvm/llvm-project/pull/87145


More information about the Mlir-commits mailing list