diff --git a/mlir/test/CAPI/ir.c b/mlir/test/CAPI/ir.c --- a/mlir/test/CAPI/ir.c +++ b/mlir/test/CAPI/ir.c @@ -1629,7 +1629,7 @@ return count; } -/// Tests operand APIs. +/// Tests clone APIs. int testClone() { fprintf(stderr, "@testClone\n"); // CHECK-LABEL: @testClone @@ -1651,7 +1651,7 @@ mlirOperationStateAddResults(&constOneState, 1, &indexType); mlirOperationStateAddAttributes(&constOneState, 1, &indexOneValueAttr); MlirOperation constOne = mlirOperationCreate(&constOneState); - + // Replace the original const one with a clone and destroy the original MlirOperation evilConstOne = mlirOperationClone(constOne); mlirOperationDestroy(constOne);