[Mlir-commits] [mlir] ffbda47 - [mlir] Fix build error (NFC)

Jie Fu llvmlistbot at llvm.org
Tue Jul 16 16:14:21 PDT 2024


Author: Jie Fu
Date: 2024-07-17T07:13:16+08:00
New Revision: ffbda47159361cd089b8046ec634ace071e5493c

URL: https://github.com/llvm/llvm-project/commit/ffbda47159361cd089b8046ec634ace071e5493c
DIFF: https://github.com/llvm/llvm-project/commit/ffbda47159361cd089b8046ec634ace071e5493c.diff

LOG: [mlir] Fix build error (NFC)

/llvm-project/mlir/include/mlir/CAPI/Rewrite.h:21:63:
error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
DEFINE_C_API_PTR_METHODS(MlirRewriterBase, mlir::RewriterBase);
                                                              ^
1 error generated.

Added: 
    

Modified: 
    mlir/include/mlir/CAPI/Rewrite.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/CAPI/Rewrite.h b/mlir/include/mlir/CAPI/Rewrite.h
index 0e6dcb2477626..f0bb9337e49ea 100644
--- a/mlir/include/mlir/CAPI/Rewrite.h
+++ b/mlir/include/mlir/CAPI/Rewrite.h
@@ -18,6 +18,6 @@
 #include "mlir/CAPI/Wrap.h"
 #include "mlir/IR/PatternMatch.h"
 
-DEFINE_C_API_PTR_METHODS(MlirRewriterBase, mlir::RewriterBase);
+DEFINE_C_API_PTR_METHODS(MlirRewriterBase, mlir::RewriterBase)
 
 #endif // MLIR_CAPIREWRITER_H


        


More information about the Mlir-commits mailing list