[Mlir-commits] [mlir] 175d5fa - [MLIR] replace C++ function type defintion in the C API's Interfaces.h
Jacques Pienaar
llvmlistbot at llvm.org
Mon Feb 21 07:54:29 PST 2022
Author: fuzzypixelz
Date: 2022-02-21T07:53:59-08:00
New Revision: 175d5fa388298934629f5cf183c7de45a672a063
URL: https://github.com/llvm/llvm-project/commit/175d5fa388298934629f5cf183c7de45a672a063
DIFF: https://github.com/llvm/llvm-project/commit/175d5fa388298934629f5cf183c7de45a672a063.diff
LOG: [MLIR] replace C++ function type defintion in the C API's Interfaces.h
Clearly this something of a typo, and it obviously doesn't even compile.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D120247
Added:
Modified:
mlir/include/mlir-c/Interfaces.h
Removed:
################################################################################
diff --git a/mlir/include/mlir-c/Interfaces.h b/mlir/include/mlir-c/Interfaces.h
index 7ab6b8af3a8c7..233f828b924c7 100644
--- a/mlir/include/mlir-c/Interfaces.h
+++ b/mlir/include/mlir-c/Interfaces.h
@@ -48,7 +48,7 @@ MLIR_CAPI_EXPORTED MlirTypeID mlirInferTypeOpInterfaceTypeID();
/// transferring ownership to the caller. The first argument is the number of
/// consecutive elements pointed to by the second argument. The third argument
/// is an opaque pointer forwarded to the callback by the caller.
-using MlirTypesCallback = void (*)(intptr_t, MlirType *, void *);
+typedef void (*MlirTypesCallback)(intptr_t, MlirType *, void *);
/// Infers the return types of the operation identified by its canonical given
/// the arguments that will be supplied to its generic builder. Calls `callback`
More information about the Mlir-commits
mailing list